Re: Full text search with ORDER BY performance issue

From: Krade <krade(at)krade(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Full text search with ORDER BY performance issue
Date: 2009-07-21 00:25:02
Message-ID: 4A650ADE.3030905@krade.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Alvaro Herrera 2009-07-21 01:00:17 Re: Help needed for reading postgres log : RE: Concurrency issue under very heay loads
Previous Message Tom Lane 2009-07-20 23:34:38 Re: Calling conventions