Huge Datamining = Huge DB - How to get best Performance etc?

General discussion of PokerTracker 3.

Moderator: Moderators

Huge Datamining = Huge DB - How to get best Performance etc?

Postby Exxtromo » Mon Sep 29, 2008 5:50 pm

Hey!

I bought hand histories from ipoker from the last 2 month (about 6 million hands). I am scanning them at the moment. After 1 Mio hand the Housekeeping takes about 25 minutes, so i guess it will take much longer after i have scanned my 6 mio. I also will have every single hand played on my 2 limits i play in the future...so i will have a HUUUGE database.

My question is, does it really make sense to use only one database or should i create a new one every month or every 2 months? Does it make sense to Housekeep my database every few days?
Dos it make a difference if i buy a better CPU? (i now use 2x2,33Ghz with 2 Gig Ram with a good setup)?

I want to get the best performance i can get with this huge and fast growing database. Hope u can give me some tipps to do so.

Thanks a lot for ur help!
Exxtromo
 
Posts: 9
Joined: Mon Sep 29, 2008 5:38 pm

Re: Huge Datamining = Huge DB - How to get best Performance etc?

Postby WhiteRider » Tue Sep 30, 2008 3:04 am

Check out the 'general' post in the Database / Postgres FAQ
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Huge Datamining = Huge DB - How to get best Performance etc?

Postby Exxtromo » Tue Sep 30, 2008 10:04 am

well okay. Im still scanning. The scan work is pretty sick.

I will create ONE database for every limit every 2 weeks. Thats a lot of work, but Housekeeping one month of hands of one or two limits takes soooo much time (couple of hours) .

I think i will have to find it out for myself whats the maximum size of a database.

Pretty hard work anyway....this really sucks ;)
Exxtromo
 
Posts: 9
Joined: Mon Sep 29, 2008 5:38 pm

Re: Huge Datamining = Huge DB - How to get best Performance etc?

Postby WhiteRider » Tue Sep 30, 2008 11:47 am

I don't think you need to break it down quite that much.
1 database per month for all levels should be enough - or even every couple of months, 6 million hands should be ok. Once you have a 'full' DB (i.e. you're not going to import into it again) and run all the housekeeping on it you won't need to do it again because if you don't update it it will stay in optimum condition.

(BTW, I'll move this to the PT3 section)
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Huge Datamining = Huge DB - How to get best Performance etc?

Postby Exxtromo » Tue Sep 30, 2008 4:38 pm

thanks for the advice. i will make one database per month...thats easy to manage

last question: when i import one or 2 million hands in a row, does it make sense to cluster/vacuum/analyse/cache after a while, or is it enough to do it at the end?
Exxtromo
 
Posts: 9
Joined: Mon Sep 29, 2008 5:38 pm

Re: Huge Datamining = Huge DB - How to get best Performance etc?

Postby WhiteRider » Tue Sep 30, 2008 5:28 pm

No, just do it at the end - doing it part way through is a waste of time because it will all be redone at the end.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Huge Datamining = Huge DB - How to get best Performance etc?

Postby Exxtromo » Tue Sep 30, 2008 5:57 pm

thank you very much
Exxtromo
 
Posts: 9
Joined: Mon Sep 29, 2008 5:38 pm

Re: Huge Datamining = Huge DB - How to get best Performance etc?

Postby kaisersoze » Sat Dec 27, 2008 7:50 am

Hi,

I had 2 databases : 1 for played hands and 1 for observed hands.

My DB on observed hands has 1,5 Million hands (approx.). When i cluster or update the cache it takes 1H30mn for each. So i decided to create a 2nd database for observed hands to have housekeeping faster.
It's a good idea ?

For the hud, i check the 3. It will merge from the 3 if i understood good.

I have intention to create a new DB every 1 Mhands.

For the Hud in the replayer (future update), it will show stats merged from the 3 databases ?
kaisersoze
 
Posts: 55
Joined: Sun Oct 26, 2008 11:02 am

Re: Huge Datamining = Huge DB - How to get best Performance etc?

Postby kraada » Sat Dec 27, 2008 10:26 am

Yes the HUD will show data from all three databases if you check them in the HUD Options; I can't say for certain how the HUD in the replayer will display things but I strongly suspect that it will work the same there as well.

Creating a new database every million hands will make things significantly easier yes; once you've run housekeeping on a database you no longer intend to use, you don't need to re-run it again which will save you quite a bit of time after a while.
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Huge Datamining = Huge DB - How to get best Performance etc?

Postby kaisersoze » Sat Dec 27, 2008 10:39 am

Thanks.

Do you know if the Hud in the replayer will be in the next beta ?
kaisersoze
 
Posts: 55
Joined: Sun Oct 26, 2008 11:02 am

Next

Return to General [Read Only]

Who is online

Users browsing this forum: No registered users and 0 guests