Re: indexes greatly slowing data entry

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Tom Burke" <lists(at)spamex(dot)com>
Cc: "DE Sesa, Michael C(dot)" <michael(dot)desesa(at)exeloncorp(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: indexes greatly slowing data entry
Date: 2002-06-25 21:23:14
Message-ID: 10961.1025040194@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Tom Burke" <lists(at)spamex(dot)com> writes:
> I have experienced problems with indexes on varchar columns causing
> updates to be very slow. You might also try doing a REINDEX TABLE
> command on the relevant tables. I have found this to give a
> performance increase for queries/updates, but generally still find
> character indexes to drag down insert/update performance.

Coupla questions: did you build with --enable-locale? How about
--enable-multibyte? If yes to either, which locale and encoding
settings are you using exactly?

Also, what platforms are involved here? The known problems with
strcoll() in early 2.2.* glibc releases are in the back of my mind
here, though the symptoms we have seen from that bug ran in the
"backend dumps core" line rather than "backend is slow" line.

Finally, do your indexed varchar columns tend to have lots and
lots of repeated values?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Elaine Lindelef 2002-06-25 21:40:03 What is a tuple?
Previous Message Stephan Szabo 2002-06-25 21:10:33 Re: Help with Arrays and References