From: Tom Lane <tgl@sss.pgh.pa.us>
To: Trevor Ball <TBall@eppcon.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Index Slowing Insert >50x
Date: Tue, 01 Feb 2005 00:29:15 -0500
Message-ID: <10297.1107235755@sss.pgh.pa.us> (raw)
In-Reply-To: <E5F77E3E43D87C4D9A9ED35E1A31814B0AAC8C@mink.eppcon.com>
References: <E5F77E3E43D87C4D9A9ED35E1A31814B0AAC8C@mink.eppcon.com>
"Trevor Ball" <TBall@eppcon.com> writes:
> ... it doesn't
> seem reasonable to me that an index would slow an insert more than
> 50-fold, regardless of hardware or the nature of the index.
Seems pretty slow to me too. Can you provide a self-contained test
case?
One possibility is that depending on your platform and locale setting,
varchar comparisons can be a whole lot slower than a normal person would
consider sane. If you're not using C locale, you might try C locale and
see if it helps.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, TBall@eppcon.com
Subject: Re: Index Slowing Insert >50x
In-Reply-To: <10297.1107235755@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox