Re: Updates are slow.. - Mailing list pgsql-general

From Tom Burke
Subject Re: Updates are slow..
Date
Msg-id NDBBIIDKBFNMNPDNLCDDIECFDCAA.lists@spamex.com
Whole thread Raw
In response to Re: Updates are slow..  ("Tom Burke" <lists@spamex.com>)
Responses Re: Updates are slow..  (Scott Marlowe <scott.marlowe@ihs.com>)
Re: Updates are slow..  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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

pgsql-general by date:

Previous
From: merlyn@stonehenge.com (Randal L. Schwartz)
Date:
Subject: Re: Once again, nntp://news.postgresql.org is down
Next
From: Vince Vielhaber
Date:
Subject: Re: Once again, nntp://news.postgresql.org is down