Re: how to make this database / query faster

Поиск
Список
Период
Сортировка
От Volkan YAZICI
Тема Re: how to make this database / query faster
Дата
Msg-id 87wso3rtbg.fsf@alamut.mobiliz.com.tr
обсуждение исходный текст
Ответ на how to make this database / query faster  (mark <markkicks@gmail.com>)
Список pgsql-general
On Sat, 15 Mar 2008, mark <markkicks@gmail.com> writes:
> select * from users where session_key is not Null order by id offset OFFSET limit 300
>
> i want to go through the whole table... it gets really slow like
> greater than 5 minutes when the OFFSET is over 500,000..

Did you try your chance with CURSORs? (See manual page for DECLARE.)


Regards.

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

Предыдущее
От: Dave Potts
Дата:
Сообщение: Re: Loging of postgres requests
Следующее
От: askel
Дата:
Сообщение: on insert when ... do instead update