From: hubert depesz lubaczewski <depesz@gmail.com>
To: Yves Vindevogel <yves.vindevogel@implements.be>
Cc: pgsql-performance@postgresql.org
Subject: Re: Speed with offset clause
Date: Fri, 24 Jun 2005 20:54:55 +0200
Message-ID: <9e4684ce05062411545fdfe5fc@mail.gmail.com> (raw)
In-Reply-To: <1c365a8bdeb09957fadda7a6fdc8ff02@implements.be>
References: <1c365a8bdeb09957fadda7a6fdc8ff02@implements.be>
On 6/24/05, Yves Vindevogel <yves.vindevogel@implements.be> wrote:
> So, when I want the last page, which is: 600k / 25 = page 24000 - 1 =
> 23999, I issue the offset of 23999 * 25
improving this is hard, but not impossible.
if you have right index created, try to reverse the order and fetch
first adverts, and then resort it (just the 25 adverts) in correct
order.
it will be faster.
depesz
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: depesz@gmail.com, yves.vindevogel@implements.be
Subject: Re: Speed with offset clause
In-Reply-To: <9e4684ce05062411545fdfe5fc@mail.gmail.com>
* 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