From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | Brian Choate <brianc(at)nimblefish(dot)com> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Poor performance of delete by primary key |
Date: | 2005-09-06 15:51:05 |
Message-ID: | 431DBAE9.3060205@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Brian Choate wrote:
> Hello,
>
> We are seeing a very strange behavior from postgres. For one of our
> very common tasks we have to delete records from a table of around
> 500,000 rows. The delete is by id which is the primary key. It seems
> to be consistently taking around 10 minutes to preform. This is
> totally out of line with the rest of the performance of the database.
> Any ideas on what might be going on?
Well, it sounds like *something* isn't using an index. You say that all
your FK's are indexed, but that's something worth checking. Also keep an
eye out for type conflicts.
If the system is otherwise idle, it might be worthwhile to compare
before and after values of pg_stat* (user-tables and user-indexes).
--
Richard Huxton
Archonet Ltd
From | Date | Subject | |
---|---|---|---|
Next Message | Matthew Sackman | 2005-09-06 15:51:24 | Re: Massive performance issues |
Previous Message | Matthew Sackman | 2005-09-06 15:43:15 | Re: Poor performance of delete by primary key |