1400+ hours to purge 5M hands in 7M hands DB?

Experiencing technical difficulties? Think you've found a problem with PokerTracker 3? Report it here.

Moderator: Moderators

1400+ hours to purge 5M hands in 7M hands DB?

Postby IWantADiscount » Sat May 07, 2011 1:41 pm

Last time when I imported 5M hands, it took 2 days to import and then over a week to do the housekeeping. Is that normal? I have 2x core CPU with 3GB ram, while importing the total memory usage rarely went above 2GB and while importing I have closed all other programs, disabled firewall, antivirus and most other services.

Anyways, now I want to import more hands, but I do not want to wait 2 weeks for housekeeping to finish, so before importing more hands I decided to delete 5M old hands (I have selected "observed hands" for certain limits). The total number of hands in my database is around 7M. It now says that It'll take 1400+ hours to purge those hands??? I am a database developer myself (I am not familiar with postgre, though) and I just can't imagine something so simple taking THAT long. Is there ANY way to make this faster? Maybe I need to do some changes to database indexes before I do the purge? Also, can I cancel this? I remember trying to cancel some long operation before and it took a few days for the cancel request to go through.
IWantADiscount
 
Posts: 20
Joined: Fri Oct 17, 2008 5:34 pm

Re: 1400+ hours to purge 5M hands in 7M hands DB?

Postby WhiteRider » Sat May 07, 2011 2:54 pm

What version of PT3 are you using?
There is a significant change to purging in v3.11 Beta which makes purging a couple of orders of magnitude faster, so if you're not using that you should update.

Download page
PT3 Build History / Release Notes

Cancel won't stop it mid-operation since that request has been passed to PostgreSQL. If you want to stop it you will need to terminate the process.
If you're importing large amounts of observed hands you may find something like this useful - Tutorial: Managing Multiple Databases.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: 1400+ hours to purge 5M hands in 7M hands DB?

Postby IWantADiscount » Sat May 07, 2011 6:21 pm

I upgraded version 3.10 to 3.11 beta and the purge STILL says 1300 hours! Am I missing somethning?
IWantADiscount
 
Posts: 20
Joined: Fri Oct 17, 2008 5:34 pm

Re: 1400+ hours to purge 5M hands in 7M hands DB?

Postby WhiteRider » Sun May 08, 2011 3:38 am

Does it say v3.11.0 in the title bar of PT3 now?
The initial estimate may be too high and purging that many hands will still take some time - have you let it run for a few minutes and see if the estimate comes down and/or the purge progresses?

If you're purging most of your database you'll probably find it faster to create a new database and import the hands you want to keep (assuming you have your personal hand histories separate from your purchased ones).
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: 1400+ hours to purge 5M hands in 7M hands DB?

Postby IWantADiscount » Sun May 08, 2011 11:21 am

Yes, it says v3.11.0 beta.

It takes about an hour before the purge screen with estimates even appears. After the first estimate showed, I let it run for about 3 hours and the estimate didn't change much.

The new database way is a lot faster. I've already exported/imported the hands I DID want in the new db and now I am in a process of importing the new hands I wanted to add.

I think you should metion somewhere that the optimal DB size should be approx. 2-3M hands. While the HUD will still work fine even with 7M hands, the housekeeping will take well over a week.
IWantADiscount
 
Posts: 20
Joined: Fri Oct 17, 2008 5:34 pm

Re: 1400+ hours to purge 5M hands in 7M hands DB?

Postby WhiteRider » Sun May 08, 2011 3:31 pm

Once housekeeping has been done it will not need to be done again unless you do another manual import, and then it will only add the new hands to the cache - that shouldn't take as long as the original import unless you import a very large amount of hands.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK


Return to Technical Support / Bug Reports [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests