Purging all (and only) observed hands from a DB?

General discussion of PokerTracker 3.

Moderator: Moderators

Re: Purging all (and only) observed hands from a DB?

Postby tarix » Wed May 12, 2010 9:03 pm

vicnice wrote:Unfortunately purging is ridiculously slow (kraada and whiterider would know more specific numbers, but yeah, it is very slow on large databases). I think it is because when it is purging it has to delete things from a lot of locations in order to make sure the data remains consistent.


Vicnice's assumption is correct. Each hand has to be deleted up to 10 times from 7 different tables. Also each session is purged in a single transaction, for consistency reasons, so that can add up to a lot of disk activity.

I do have a small amount of good news though.

I did find one small bug in our purging process which might make it a tad bit faster especially for sessions with lots of players in it. (Basically long sessions.) In addition I also added performance logging for the purges. That way when you run into these extremely long purges we can get some idea of how long it is taking per session and what kinds of sessions are taking longer. With enough information we might be able to figure out how to optimize these bigger purges.

All of this will be available in the next Beta.
tarix
Developer
 
Posts: 3760
Joined: Tue May 20, 2008 2:49 pm

Re: Purging all (and only) observed hands from a DB?

Postby rowhousepd » Thu May 13, 2010 2:24 am

That makes sense I guess. Well I'm glad a possible improvement for this is in the works.
rowhousepd
 
Posts: 329
Joined: Sun Mar 22, 2009 4:00 am
Location: Philadelphia, PA

Previous

Return to General [Read Only]

Who is online

Users browsing this forum: No registered users and 10 guests