pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pierre-Frédéric Caillaud <lists@boutiquenumerique.com>
To: pgsql-performance@postgresql.org
Subject: Re: The usual sequential scan, but with LIMIT !
Date: Mon, 06 Sep 2004 14:27:06 +0200
Message-ID: <opsdwnjgnecq72hf@musicbox> (raw)
In-Reply-To: <opsdwm0iujcq72hf@musicbox>
References: <4134BF36.3000504@syscor.com>
	<413BA104.1040508@geizhals.at>
	<b068057c040905181998476d1@mail.gmail.com>
	<opsdwm0iujcq72hf@musicbox>


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.




view thread (8+ messages)  latest in thread

Message-ID: <opsdwnjgnecq72hf@musicbox>
Permalink:  ../opsdwnjgnecq72hf@musicbox/
Also on:    postgresql.org/message-id/opsdwnjgnecq72hf@musicbox

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: lists@boutiquenumerique.com
  Subject: Re: The usual sequential scan, but with LIMIT !
  In-Reply-To: <opsdwnjgnecq72hf@musicbox>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox