pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PFC <lists@peufeu.com>
To: Christian Paul Cosinas <cpc@cybees.com>
To: pgsql-performance@postgresql.org
Subject: Re: Speed Up Offset and Limit Clause
Date: Thu, 11 May 2006 09:05:56 +0200
Message-ID: <op.s9dkn6lycigqcu@apollo13> (raw)
In-Reply-To: <002801c67509$8f1a51a0$1e21100a@ghwk02002147>
References: <002801c67509$8f1a51a0$1e21100a@ghwk02002147>


	Why do you want to use it this way ?
	Explain what you want to do, there probably is another faster solution...

On Thu, 11 May 2006 16:45:33 +0200, Christian Paul Cosinas  
<cpc@cybees.com> wrote:

> Hi!
>
> How can I speed up my server's performance when I use offset and limit
> clause.
>
> For example I have a query:
> SELECT * FROM table ORDER BY id, name OFFSET 100000 LIMIT 10000
>
> This query takes a long time about more than 2 minutes.
>
> If my query is:
> SELECT * FROM table ORDER BY id, name OFFSET 50000 LIMIT 10000
> It takes about 2 seconds.
>
> Thanks
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
>        choose an index scan if your joining column's datatypes do not
>        match





view thread (8+ messages)  latest in thread

Message-ID: <op.s9dkn6lycigqcu@apollo13>
Permalink:  ../op.s9dkn6lycigqcu@apollo13/
Also on:    postgresql.org/message-id/op.s9dkn6lycigqcu@apollo13

 · 

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@peufeu.com, cpc@cybees.com
  Subject: Re: Speed Up Offset and Limit Clause
  In-Reply-To: <op.s9dkn6lycigqcu@apollo13>

* 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