Re: [SQL] OFFSET impact on Performance???

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: [SQL] OFFSET impact on Performance???
Дата
Msg-id 6EE64EF3AB31D5448D0007DD34EEB3412A75EC@Herge.rcsinc.local
обсуждение исходный текст
Список pgsql-performance
> Actually, you can if you assume you can "temporarily materialize" that
> view.
>
> Then, you use a join on my_query to pull the bits you want:
>
>   select [big table.details] from [big table],
>   [select * from my_query order by [something] offset 280 limit 20]
>   where [join criteria between my_query and big table]
>   order by [something];
>

I think that's a pretty reasonable compromise between a true
materialized solution and brute force limit/offset.  Still, the
performance of a snapshot materialized view indexed around your query
simply can't be beat, although you have to pay a hefty price in
complexity, maintenance, and coherency.

Merlin

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

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Re: [SQL] OFFSET impact on Performance???
Следующее
От: Mitch Pirtle
Дата:
Сообщение: Re: SQL Performance Guidelines