Re: Hash join on int takes 8..114 seconds - Mailing list pgsql-performance

From Tomas Vondra
Subject Re: Hash join on int takes 8..114 seconds
Date
Msg-id 4929A533.5030203@fuzzy.cz
Whole thread Raw
In response to Re: Hash join on int takes 8..114 seconds  ("Andrus" <kobruleht2@hot.ee>)
Responses Re: Hash join on int takes 8..114 seconds
List pgsql-performance
> Risky to try in prod server. Requires creating  randomly distributed
> product_id testcase to measure
> difference.
>
> What should I do next?

I guess you have backups - take them, restore the database on a
different machine (preferably with the same / similar hw config) and
tune the queries on it.

After restoring all the tables / indexes will be 'clean' (not bloated),
so you'll see if performing VACUUM FULL / CLUSTER is the right solution
or if you have to change the application internals.

Sure, the times will be slightly different but the performance problems
should remain the same.

regards
Tomas

pgsql-performance by date:

Previous
From: "Andrus"
Date:
Subject: Re: Hash join on int takes 8..114 seconds
Next
From: Scott Carey
Date:
Subject: Re: Hash join on int takes 8..114 seconds