Multiples Databases to increase time housekeeping?

PostgreSQL is the database server used to store information. Do you have a question or are you having problem with PostgreSQL? If so, post them here.

Moderator: Moderators

Multiples Databases to increase time housekeeping?

Postby hieros » Tue Jan 13, 2009 2:40 pm

Hello,
I have my main database to import my played hand. (500K hands). The housekeeping is very long and It takes me long time. So I did it and I didn't want to do it again.
I have 1.000.000 hands to imports and my question is :
should I create 4 ou 5 databases to import them per 200.000 and cluster and update cache each of them separely. The advantage is that My computer will not be occupied for long time, I could do the cluster on few separates days.

Now, How theses databases works with HUD because for me only one is active so HUD could pick stats in only active database or could it take stat in all database.
If not : Is it possible after cluster and update cache to reintegrate the secondaries databases in the main database and of course to not need to do the cluster and update cache of the main database.

Thanks for yours anwsers and sorry for my english.
hieros
 
Posts: 1
Joined: Tue Jan 13, 2009 2:04 pm

Re: Multiples Databases to increase time housekeeping?

Postby kraada » Tue Jan 13, 2009 2:52 pm

First off, there will be improvements to the Clustering process coming in the next beta that should significantly reduce cluster time (it got cut about 60% for me), so that will be coming down naturally on its own when the next Beta comes out.

Second, you don't need to do housekeeping that often. If you run a full housekeeping every 100k hands that should be plenty. If you're playing enough that it comes up once a month, just pick a night and run it overnight and it shouldn't be that cumbersome. If you're doing a lot of datamining, I recommend having a separate database for datamined hands, that way it's easier for you to run queries against your played hands and you can run housekeeping on the datamined database separately.
kraada
Moderator
 
Posts: 54431
Joined: Wed Mar 05, 2008 2:32 am
Location: NY


Return to PostgreSQL [Read Only]

Who is online

Users browsing this forum: No registered users and 35 guests

cron
highfalutin