Reindex DB?

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

Moderator: Moderators

Reindex DB?

Postby guysml » Mon Mar 23, 2009 4:55 am

I have been having some trouble with PT becoming very slow lately when I try to look up detailed stats on players.

I was looking under the maintenance options in PG admin III and it has an option to reindex the database. I was wondering if running this would speed things up a bit. Does anyone know if there is any point in using this option? Could reindexing the db screw it up?

Thanks for any ideas,

Guy.
guysml
 
Posts: 17
Joined: Mon Jan 05, 2009 8:52 pm

Re: Reindex DB?

Postby WhiteRider » Mon Mar 23, 2009 5:21 am

Have you run the Housekeeping functions?
This should speed things up.
Databases -> Housekeeping.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Reindex DB?

Postby guysml » Mon Mar 23, 2009 7:09 am

Thanks for your reply,

I did try the usual housekeeping functions, however they did not speed things up any. Thanks for the advice tho. Does anyone know about reindexing the database? Could it cure this extreme lagging/freezing I get when trying to look at detailed stats on a player.

Thanks,

Guy.
guysml
 
Posts: 17
Joined: Mon Jan 05, 2009 8:52 pm

Re: Reindex DB?

Postby WhiteRider » Mon Mar 23, 2009 10:29 am

I'll get someone who knows more about postgres to take a look at this.

How big is your database?

Other things you should do are defrag your hard drive regularly - this can have a big effect since there is so much disk access. Make sure you shut everything down, including stopping the postgres service (Start -> Programs -> Postgres -> Stop Service).
Also take a look at these:
Performance Tuning: Hard Drives
Performance Tuning PostgreSQL
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Reindex DB?

Postby kraada » Mon Mar 23, 2009 10:43 am

Rebuilding the index won't hurt, but in more recent versions of PostgreSQL it isn't necessary to avoid index bloat (see this page for a discussion of why, if you're interested.)
kraada
Moderator
 
Posts: 54430
Joined: Wed Mar 05, 2008 2:32 am
Location: NY

Re: Reindex DB?

Postby guysml » Mon Mar 23, 2009 10:31 pm

Thanks for all the replies people! I really appreciate it. My DB is getting kinda big now at about 1.4 million hands. I have not defrag'ed my HD lately so perhaps this will help. The one thing that could be causing issues is the fact that I am running it in a Virtual Machine using VMware player.

I will try the defrag and the performance tuning suggestions and see how this works out.

Thanks again to all who gave advice here.

Guy.
guysml
 
Posts: 17
Joined: Mon Jan 05, 2009 8:52 pm

Re: Reindex DB?

Postby WhiteRider » Tue Mar 24, 2009 10:14 am

Yeah, a defrag will probably help quite a lot - there is a lot of disk access going on and that is often the bottleneck.
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