Re: Bad planner decision - bitmap scan instead of index - Mailing list pgsql-performance

From hubert depesz lubaczewski
Subject Re: Bad planner decision - bitmap scan instead of index
Date
Msg-id 20070817072839.GA6598@depesz.com
Whole thread Raw
In response to Bad planner decision - bitmap scan instead of index  (Frank Schoep <frank@ffnn.nl>)
Responses Re: Bad planner decision - bitmap scan instead of index
List pgsql-performance
On Thu, Aug 16, 2007 at 06:14:02PM +0200, Frank Schoep wrote:
> The (example) query:
> SELECT * FROM movies WHERE letter = 'T' ORDER BY name ASC LIMIT 100
> OFFSET 1900;

try to change the query to:
SELECT * FROM movies WHERE letter = 'T' ORDER BY letter ASC, name ASC LIMIT 100
OFFSET 1900;

depesz

--
quicksil1er: "postgres is excellent, but like any DB it requires a
highly paid DBA.  here's my CV!" :)
http://www.depesz.com/ - blog dla ciebie (i moje CV)

pgsql-performance by date:

Previous
From: "Luke Lonergan"
Date:
Subject: Re: Integrated perc 5/i
Next
From: Frank Schoep
Date:
Subject: Re: Bad planner decision - bitmap scan instead of index