Re: [GENERAL] Function with limit and offset - PostgreSQL 9.3

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: [GENERAL] Function with limit and offset - PostgreSQL 9.3
Дата
Msg-id CAKFQuwbKRLp7BwywcptmD-Ahpq1h=fQV_uyXitsgfDvF=x0VXg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [GENERAL] Function with limit and offset - PostgreSQL 9.3  (marcinha rocha <marciaestefanidarocha@hotmail.com>)
Ответы Re: [GENERAL] Function with limit and offset - PostgreSQL 9.3
Список pgsql-general
On Thursday, June 8, 2017, marcinha rocha <marciaestefanidarocha@hotmail.com> wrote:

On my original select, the row will have migrated = false. Maybe All I need to put is a limit 2000 and the query will do the rest?


You shoud try to avoid the for loop, but yes a limit 2000 on the for loop query should work since the migrated flag will ensure the same rows aren't selected again.

David J. 

В списке pgsql-general по дате отправления:

Предыдущее
От: marcinha rocha
Дата:
Сообщение: Re: [GENERAL] Function with limit and offset - PostgreSQL 9.3
Следующее
От: marcinha rocha
Дата:
Сообщение: Re: [GENERAL] Function with limit and offset - PostgreSQL 9.3