Cursor behavior
От | amit sehas |
---|---|
Тема | Cursor behavior |
Дата | |
Msg-id | 1323983757.63733.YahooMailClassic@web160504.mail.bf1.yahoo.com обсуждение исходный текст |
Ответы |
Re: Cursor behavior
|
Список | pgsql-hackers |
HI, I had a question about the cursor internals implementation. When you Fetch next 'n' results without moving the cursors, isthis kind of functionality implemented by firstly executing the whole query and then moving the cursor over the results,or are the movements done on active database lookups, moving forward and backward... it seems that the cursor implementation functions evaluate the whole query and then return results as requested, it wouldseem to be too difficult to otherwise support a functionality that returns next 10 results without moving the cursors...we need to determine this since in our case we are dealing with a query that returns millions of records, and we would rather the cursor did not evaluate the whole query upfront... any help is greatly appreciated... thanks
В списке pgsql-hackers по дате отправления: