3Bet Preflop vs Hero

Discuss how to create custom stats, reports and HUD profiles and share your creations.

Moderators: WhiteRider, kraada, Flag_Hippo, morny, Moderators

Re: 3Bet Preflop vs Hero

Postby 4StarGen » Wed Dec 10, 2014 3:09 pm

ok but why in a single player report the query is super fast?

SELECT (sum((case when(cash_hand_player_statistics.flg_p_3bet AND EXISTS (SELECT 1 FROM cash_hand_player_statistics hero WHERE hero.id_hand = cash_hand_player_statistics.id_hand AND hero.flg_hero AND hero.flg_p_first_raise) ) then 1 else 0 end))) as "cnt_p_3bet_vs_hero", (sum((case when(cash_hand_player_statistics.flg_p_3bet_opp AND EXISTS (SELECT 1 FROM cash_hand_player_statistics hero WHERE hero.id_hand = cash_hand_player_statistics.id_hand AND hero.flg_hero AND hero.flg_p_first_raise) ) then 1 else 0 end))) as "cnt_p_3bet_opp_vs_hero" FROM cash_hand_player_statistics WHERE (cash_hand_player_statistics.id_player = (SELECT id_player FROM player WHERE player_name_search=E'j' AND id_site='100')) AND ((cash_hand_player_statistics.id_gametype = 1))
2014/12/10 20:08:07.525 [02564]: [00001650][Query] Query execution time: 2564.24828419 ms
4StarGen
 
Posts: 932
Joined: Sat Mar 08, 2014 6:58 am

Re: 3Bet Preflop vs Hero

Postby BillGatesIII » Wed Dec 10, 2014 3:22 pm

Is this last query for the player you have played 42k hands with?
BillGatesIII
 
Posts: 740
Joined: Fri Dec 16, 2011 6:50 pm

Re: 3Bet Preflop vs Hero

Postby 4StarGen » Wed Dec 10, 2014 3:31 pm

nope, but I run it below with the corresponding results...

Image

Code: Select all
 Query execution time: 30889.66497966 ms[/b]


ah, you have a PM
4StarGen
 
Posts: 932
Joined: Sat Mar 08, 2014 6:58 am

Re: 3Bet Preflop vs Hero

Postby kraada » Wed Dec 10, 2014 5:05 pm

I'm guessing it's because you have three aliases attached to the player in the original query that's going to make things take longer.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: 3Bet Preflop vs Hero

Postby 4StarGen » Wed Dec 10, 2014 5:50 pm

^
I'm not following you, 3 aliases?
4StarGen
 
Posts: 932
Joined: Sat Mar 08, 2014 6:58 am

Re: 3Bet Preflop vs Hero

Postby kraada » Wed Dec 10, 2014 6:07 pm

Oh never mind I see now you just were doing it for all players in the hand. The single letter redacted player names confused me :)
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: 3Bet Preflop vs Hero

Postby potamito » Thu May 07, 2015 10:25 am

Trying to build a BvB Resteal shove vs HERO stat and even tho i got a valid statement i got a message saying this column cannot be cached, this is what i got...

cnt_resteal_shove_att_bb_vs_hero
Code: Select all
sum(if[tourney_hand_player_statistics.flg_p_3bet AND tourney_hand_player_statistics.enum_allin SIMILAR TO '(p|P)' AND lookup_actions_p.action = 'R' and tourney_hand_player_statistics.flg_blind_def_opp and exists
    (select 1  from tourney_hand_player_statistics hero  where hero.id_hand = tourney_hand_player_statistics.id_hand   and hero.flg_hero  and hero.position = 9), 1, 0])


Same for the opp expresion...

cnt_resteal_opp_shove_att_bb_vs_hero
Code: Select all
sum(if[tourney_hand_player_statistics.flg_p_3bet AND tourney_hand_player_statistics.enum_allin SIMILAR TO '(p|P)' AND lookup_actions_p.action = 'R' and tourney_hand_player_statistics.flg_blind_def_opp and exists
    (select 1  from tourney_hand_player_statistics hero  where hero.id_hand = tourney_hand_player_statistics.id_hand  and hero.flg_hero  and hero.position = 9), 1, 0])
potamito
 
Posts: 802
Joined: Wed Apr 21, 2010 4:20 pm

Re: 3Bet Preflop vs Hero

Postby 4StarGen » Thu May 07, 2015 11:55 am

Subqueries cannot be cached
4StarGen
 
Posts: 932
Joined: Sat Mar 08, 2014 6:58 am

Re: 3Bet Preflop vs Hero

Postby potamito » Tue Jul 07, 2015 4:25 pm

And the fact it cannot be cached means exactly what? slower performance? cant create the stat?
potamito
 
Posts: 802
Joined: Wed Apr 21, 2010 4:20 pm

Re: 3Bet Preflop vs Hero

Postby 4StarGen » Tue Jul 07, 2015 4:29 pm

slower performance
4StarGen
 
Posts: 932
Joined: Sat Mar 08, 2014 6:58 am

PreviousNext

Return to Custom Stats, Reports and HUD Profiles

Who is online

Users browsing this forum: 4StarGen and 12 guests

cron