| От | Richard Huxton |
|---|---|
| Тема | Re: [SQL] OFFSET impact on Performance??? |
| Дата | |
| Msg-id | 41EFE1FA.60004@archonet.com обсуждение исходный текст |
| Ответ на | Re: [SQL] OFFSET impact on Performance??? (Alex Turner <armtuk@gmail.com>) |
| Список | pgsql-performance |
Alex Turner wrote: > I am also very interesting in this very question.. Is there any way > to declare a persistant cursor that remains open between pg sessions? Not sure how this would work. What do you do with multiple connections? Only one can access the cursor, so which should it be? > This would be better than a temp table because you would not have to > do the initial select and insert into a fresh table and incur those > IO costs, which are often very heavy, and the reason why one would > want to use a cursor. I'm pretty sure two things mean there's less difference than you might expect: 1. Temp tables don't fsync 2. A cursor will spill to disk beyond a certain size -- Richard Huxton Archonet Ltd
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера