Re: Creation of tsearch2 index is very slow - Mailing list pgsql-general

From Tom Lane
Subject Re: Creation of tsearch2 index is very slow
Date
Msg-id 25127.1137777275@sss.pgh.pa.us
Whole thread Raw
In response to Re: Creation of tsearch2 index is very slow  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
Martijn van Oosterhout <kleptog@svana.org> writes:
> The cost on inserting would generally go to either penalty, or
> picksplit. Certainly if you're inserting lots of values in a short
> interval, I can imagine picksplit being nasty, since the algorithms for
> a lot of datatypes are not really reknown for their speed.

Tut tut ... in the words of the sage, it is a capital mistake to
theorize in advance of the data.  You may well be right, but on the
other hand it could easily be something dumb like an O(N^2) loop over
a list structure.

I'll post some gprof numbers after Stephan sends me the dump.  We
should probably move the thread to someplace like pgsql-perform, too.

            regards, tom lane

pgsql-general by date:

Previous
From: Tony Caduto
Date:
Subject: what am I doing wrong with this query?
Next
From: Tino Wildenhain
Date:
Subject: Re: what am I doing wrong with this query?