Re: Speed Up Offset and Limit Clause

Поиск
Список
Период
Сортировка
От PFC
Тема Re: Speed Up Offset and Limit Clause
Дата
Msg-id op.s9oandtdcigqcu@nyuu
обсуждение исходный текст
Ответ на Re: Speed Up Offset and Limit Clause  ("Christian Paul Cosinas" <cpc@cybees.com>)
Список 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.

В списке pgsql-performance по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: is it possible to make this faster?
Следующее
От: Mark Kirkwood
Дата:
Сообщение: Re: is it possible to make this faster?