CTE that result in repeated sorting of the data

Поиск
Список
Период
Сортировка
От Jon Nelson
Тема CTE that result in repeated sorting of the data
Дата
Msg-id CAKuK5J38hi5GE0b38wSyPJEG3A0H-EhqXvazWRa0xY9b6v82=A@mail.gmail.com
обсуждение исходный текст
Ответы Re: CTE that result in repeated sorting of the data
Список pgsql-hackers
I was watching a very large recursive CTE get built today and this CTE
involves on the order of a dozen or so "loops" joining the initial
table against existing tables. It struck me that - every time through
the loop the tables were sorted and then joined and that it would be
much more efficient if the tables remained in a sorted state and could
avoid being re-sorted each time through the loop. Am I missing
something here? I am using PG 8.4 if that matters.

-- 
Jon



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: pg_recvlogical tests
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Proposal for CSN based snapshots