Re: Updates are slow..

From: "Tom Burke" <lists(at)spamex(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Updates are slow..
Date: 2002-06-13 15:47:12
Message-ID: NDBBIIDKBFNMNPDNLCDDIECFDCAA.lists@spamex.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I didn't receive any response to my last post, but I've got a little
more info and have 2 questions.

I dropped the index on email.
I then populated a smallint field with random value from 0 - 2000
and created an in index on that field.

Now an update on fk_dept_id takes 7 minutes, as opposed to 2 minutes
without any additional indexes and 25 minutes with an index on email.

The index on the smallint has these stats:
NOTICE: Index emp_ix04: Pages 4959; Tuples 1230703: Deleted 597153.
CPU 1.05s/9.84u sec elapsed 29.49 sec.

Which is 1/3 of the pages that the index on email had.

My two questions:
1) Does the 25 minute update of 600K rows with an index on the
email column still seem out of line or is there not much we can do?
2) Do people think it's a good idea to get a PostgreSQL performance
tuning consultant to review our setup? If so, any recommendations
for who could help?

Many thanks in advance!

Tom Burke

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Vince Vielhaber 2002-06-13 16:03:12 Re: Once again, nntp://news.postgresql.org is down
Previous Message Randal L. Schwartz 2002-06-13 15:47:01 Re: Once again, nntp://news.postgresql.org is down