| От | Richard Huxton |
|---|---|
| Тема | Re: OFFSET impact on Performance??? |
| Дата | |
| Msg-id | 41EF9FD3.5020400@archonet.com обсуждение исходный текст |
| Ответ на | OFFSET impact on Performance??? ("Andrei Bintintan" <klodoma@ar-sd.net>) |
| Список | pgsql-sql |
Andrei Bintintan wrote: > Hi to all, > > I have the following 2 examples. Now, regarding on the offset if it > is small(10) or big(>50000) what is the impact on the performance of > the query?? I noticed that if I return more data's(columns) or if I > make more joins then the query runs even slower if the OFFSET is > bigger. How can I somehow improve the performance on this? There's really only one way to do an offset of 1000 and that's to fetch 1000 rows and then some and discard the first 1000. If you're using this to provide "pages" of results, could you use a cursor? -- Richard Huxton Archonet Ltd
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера