Re: [PERFORM] Slow TSearch2 performance for table with 1 million documents. - Mailing list pgsql-general

From Benjamin Arai
Subject Re: [PERFORM] Slow TSearch2 performance for table with 1 million documents.
Date
Msg-id 0041AF31-D807-4775-B7CF-745B0A1706E2@benjaminarai.com
Whole thread Raw
In response to Re: [PERFORM] Slow TSearch2 performance for table with 1 million documents.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Oh, I see.  I didn't look carefully at the EXPLAIN ANALYZE I posted.
So, is there a solution to the rank problem?

Benjamin

On Oct 11, 2007, at 8:53 AM, Tom Lane wrote:

> Benjamin Arai <me@benjaminarai.com> writes:
>> It appears that the ORDER BY rank operation is the slowing factor.
>> If I remove it then the query is pretty fast.  Is there another way
>> to perform ORDER BY such that it does not do a sort?
>
> I think you misunderstood: it's not the sort that's slow, it's the
> computation of the rank() values that are inputs to the sort.
>
>             regards, tom lane
>


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: XMIN semantic at peril ?
Next
From: Erik Jones
Date:
Subject: Re: XMIN semantic at peril ?