Want to run Reports-->HoldemCashHand against all hands

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

Want to run Reports-->HoldemCashHand against all hands

Postby AntiMatter » Thu May 06, 2010 4:58 pm

e.g. I have a Holdem Cash Hand report with Limit/Site/Pot/Rake/Player.
THis produces this report against the selected player.
However, I would like to run this against all the players (e.g. produce the report on every hand in the DB)

Is this possible?

Thanks!
AntiMatter
 
Posts: 8
Joined: Fri Feb 29, 2008 9:02 am

Re: Want to run Reports-->HoldemCashHand against all hands

Postby kraada » Fri May 07, 2010 8:53 am

Uncheck the "Filter on Active Player" box in the blue Filters section and then the report will run on all players.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Want to run Reports-->HoldemCashHand against all hands

Postby AntiMatter » Mon May 10, 2010 8:00 am

Thats great, thanks.

However, even on my small DB with a beefy PC, the query runs out of memory.

Not sure if anyone can help: I would eventually like to get summary statistics for all the major sites at various stakes (e.g. average pot size, rake etc). Is there some other way I could do this?

Thanks in advance.
AntiMatter
 
Posts: 8
Joined: Fri Feb 29, 2008 9:02 am

Re: Want to run Reports-->HoldemCashHand against all hands

Postby kraada » Mon May 10, 2010 9:15 am

Yes, you could do that in the Holdem Cash Player Statistics section.

If you add in any stats there and leave out the Player statistic and uncheck Filter on Active Player you'll get summary data for all hands for whatever stats you display (VP$IP, Rake, etc.)
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Want to run Reports-->HoldemCashHand against all hands

Postby AntiMatter » Wed May 12, 2010 4:46 pm

Kraada,

That works great, thanks.

I'm planning on running such a query against a huge mined DB (not yet constructed) containing years of mined data (about 500gb HEM database). Any Ideas if this is going to run in an orderly fashion, or will it just grind to a halt?


Cheers,
Last edited by AntiMatter on Wed May 12, 2010 5:01 pm, edited 2 times in total.
AntiMatter
 
Posts: 8
Joined: Fri Feb 29, 2008 9:02 am

Re: Want to run Reports-->HoldemCashHand against all hands

Postby kraada » Wed May 12, 2010 4:56 pm

Make sure the cache is up to date and it should finish. Expect the cache update process to take quite a while though.

I don't know how many hands are in a 500G HEM database, but I do know that in the latest beta for me creating the cache on a 15M hand database took about 36 hours. Once the cache is built the reports should actually run pretty quickly in that section since it can use the cache. It will still take some time, and how much will depend on the exact report you're running.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Want to run Reports-->HoldemCashHand against all hands

Postby AntiMatter » Wed May 12, 2010 5:03 pm

OK Sounds good, thanks for all the help

One last Q: I cant get the "pot" stat in Holdem Cash Player Statistics.... Is there any way I can get the average pot size? Would be most useful.

fwiw, I've been pretty impressed with PT after a long hiatus (I was kinda forced to switch to HEM in the early days). May have to switch back for a bit :D
AntiMatter
 
Posts: 8
Joined: Fri Feb 29, 2008 9:02 am

Re: Want to run Reports-->HoldemCashHand against all hands

Postby kraada » Wed May 12, 2010 5:26 pm

Average final pot size over all hands for a player you could do.

Create the following column in the Holdem Cash Player Statistics section (in Configure --> Configure Statistics):

amt_total_pot: sum(holdem_hand_summary.amt_pot)

Then on the Stats tab create the stat as (amt_total_pot / cnt_hands). The resulting value will be in dollars.

Also, welcome back to PT3! If you have any questions please feel free to ask, things have improved a lot over the last two years.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Want to run Reports-->HoldemCashHand against all hands

Postby AntiMatter » Thu May 13, 2010 4:29 pm

Brilliant!

Now to see if it works on my masses of data.

One last dumb question, a "BB" in PT is still a Big Bet, right? (e.g. BB = 2xBig Blind)?
AntiMatter
 
Posts: 8
Joined: Fri Feb 29, 2008 9:02 am

Re: Want to run Reports-->HoldemCashHand against all hands

Postby kraada » Thu May 13, 2010 5:34 pm

Yes.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 9 guests