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

From Marcin Stępnicki
Subject Re: Full text search with ORDER BY performance issue
Date
Msg-id 179149fe0907200522s299b619ekd5f4517ddb767181@mail.gmail.com
Whole thread Raw
In response to Full text search with ORDER BY performance issue  (Krade <krade@krade.com>)
List pgsql-performance
On Sun, Jul 19, 2009 at 12:07 AM, Krade<krade@krade.com> wrote:
> archive=> explain analyze select * from a where  comment_tsv @@
> plainto_tsquery('love') order by timestamp desc limit 24 offset 0;

What happens if you make it:


select * from (
        select * from a where  comment_tsv @@plainto_tsquery('love')
) xx

order by xx.timestamp desc
limit 24 offset 0;

?

pgsql-performance by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: Full text search with ORDER BY performance issue
Next
From: Robert James
Date:
Subject: Re: Fastest char datatype