Re: The usual sequential scan, but with LIMIT !

From: Pierre-Frédéric Caillaud <lists(at)boutiquenumerique(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: The usual sequential scan, but with LIMIT !
Date: 2004-09-06 12:27:06
Message-ID: opsdwnjgnecq72hf@musicbox
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance


Update :

select * from apparts where departement=69 order by departement limit 10;

does use an index scan (because of the ORDER BY), even with OFFSET, and
it's a lot faster.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Christopher Browne 2004-09-06 12:31:12 Re: One Database per Data File?
Previous Message Pierre-Frédéric Caillaud 2004-09-06 12:15:44 The usual sequential scan, but with LIMIT !

Browse pgsql-performance by date

  From Date Subject
Next Message Dennis Bjorklund 2004-09-06 12:45:30 Re: The usual sequential scan, but with LIMIT !
Previous Message Pierre-Frédéric Caillaud 2004-09-06 12:15:44 The usual sequential scan, but with LIMIT !