Contributed MGR doenst work well

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

Contributed MGR doenst work well

Postby spapia00 » Wed Dec 16, 2009 6:03 pm

amt_contributed_rake

sum(if[holdem_hand_player_detail.amt_bet_ttl > 0 AND holdem_hand_summary.amt_rake > 0, holdem_hand_summary.amt_rake * (holdem_hand_player_detail.amt_bet_ttl / holdem_hand_summary.amt_pot), 0])

I found the code here and inserted into Configure->Columns and Configure->Statistics (also edited Format, Categories same as MGR). And on the Reports tab, make a plain Report and added Player, MGR, CMGR(which I named above) and run, but it doesn't seem working well. It took over 5 hours even though I have 50,000 total hands and I felt something is wrong.

What I want to do with this is comparing MGR with contributed one. Did I do something wrong?
spapia00
 
Posts: 16
Joined: Fri Apr 04, 2008 3:42 am

Re: Contributed MGR doenst work well

Postby WhiteRider » Wed Dec 16, 2009 6:29 pm

That expression looks OK - do the numbers make sense?
When you add a custom stat it's value won't be cached until you run housekeeping again, so that can make things somewhat slower.

This stat is in the Holdem Cash Player Statistics section, I assume?
Did you run the report just for yourself, or for all players?

(I don't have time to experiment with this now as it's nearly my bedtime, but I'll get back to this in the morning if you can answer my questions.)
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


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

Who is online

Users browsing this forum: No registered users and 0 guests