Re: Bad planner decision - bitmap scan instead of index

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Frank Schoep <frank(at)ffnn(dot)nl>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Bad planner decision - bitmap scan instead of index
Date: 2007-08-17 07:28:39
Message-ID: 20070817072839.GA6598@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Frank Schoep 2007-08-17 08:43:18 Re: Bad planner decision - bitmap scan instead of index
Previous Message Fredrik Bertilsson 2007-08-17 06:50:00 Performance Solaris vs Linux