Re: Full text search with ORDER BY performance issue - Mailing list pgsql-performance

From Krade
Subject Re: Full text search with ORDER BY performance issue
Date
Msg-id 4A650ADE.3030905@krade.com
Whole thread Raw
In response to Re: Full text search with ORDER BY performance issue  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-performance
Hello,

On 7/20/2009 22:42, Kevin Grittner wrote:
> Have you considered keeping rows "narrow" until you've identified your
> 24 rows?  Something like:
>
> SELECT * FROM a
>    WHERE id in
>      (
>        SELECT id FROM a
>          WHERE comment_tsv @@ plainto_tsquery('love')
>          ORDER BY timestamp DESC
>          LIMIT 24 OFFSET 0
>      )
>    ORDER BY timestamp DESC
> ;
>
Good idea, but it doesn't really seem to do much. The query times are
roughly the same.


pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: Calling conventions
Next
From: Devin Ben-Hur
Date:
Subject: Re: Full text search with ORDER BY performance issue