Cursor behavior

Поиск
Список
Период
Сортировка
От amit sehas
Тема Cursor behavior
Дата
Msg-id 1323983757.63733.YahooMailClassic@web160504.mail.bf1.yahoo.com
обсуждение исходный текст
Ответы Re: Cursor behavior  (Robert Haas <robertmhaas@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: Autonomous subtransactions
Следующее
От: amit sehas
Дата:
Сообщение: array behavior