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: Sat, 27 May 2006 23:04:51 +0200
Message-ID: <op.s9oandtdcigqcu@nyuu> (raw)
In-Reply-To: <00e101c67997$6aa049f0$1e21100a@ghwk02002147>
References: <00e101c67997$6aa049f0$1e21100a@ghwk02002147>


> Thread 1 : gets offset 0 limit 5000
> Thread 2 : gets offset 5000 limit 5000
> Thread 3 : gets offset 10000 limit 5000
>
> Would there be any other faster way than what It thought?

	Yeah, sure, use a thread which does the whole query (maybe using a  
cursor) and fills a queue with the results, then N threads consuming from  
that queue... it will work better.



view thread (8+ messages)

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

 · 

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.s9oandtdcigqcu@nyuu>

* 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