| От | Pirtea Calin |
|---|---|
| Тема | Re: limit /offset |
| Дата | |
| Msg-id | 001c01c1ce65$094d1570$0100a8c0@dizzy обсуждение исходный текст |
| Ответ на | limit /offset ("Pirtea Calin" <pcalin@rdsor.ro>) |
| Список | pgsql-general |
> What makes you think that an index makes it faster to lookup the 10,000th row > in a table? A index indexes on *values* and has nothing to do with the row > numbers. So your query has to go through and check the 10,000 rows to ensure > they actually match your query. That's what takes the time. > I understand now. I think i hoped that offset uses the index to jump to the position 10000 (like jumping to a position in a file where the file is the index) and start sending rows from that point only. It was a stupid query anyway. Thank you. Best regards, Aplication Developer Pirtea Calin Iancu S.C. SoftScape S.R.L. pcalin@rdsor.ro
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера