Re: Speed Up Offset and Limit Clause

From: PFC <lists(at)peufeu(dot)com>
To: "Christian Paul Cosinas" <cpc(at)cybees(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Speed Up Offset and Limit Clause
Date: 2006-05-27 21:04:51
Message-ID: op.s9oandtdcigqcu@nyuu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance


> 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.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Mark Kirkwood 2006-05-28 01:11:47 Re: is it possible to make this faster?
Previous Message Tom Lane 2006-05-26 20:44:46 Re: is it possible to make this faster?