Re: Takes too long to fetch the data from database

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Takes too long to fetch the data from database
Дата
Msg-id 20060420063014.GA25438@wolff.to
обсуждение исходный текст
Ответ на Re: Takes too long to fetch the data from database  ("soni de" <soni.de@gmail.com>)
Список pgsql-performance
On Thu, Apr 20, 2006 at 11:07:31 +0530,
  soni de <soni.de@gmail.com> wrote:
> Please provide me some help regarding how could I use cursor in following
> cases? :
>
> I want to fetch 50 records at a time starting from largest stime.
>
> SELECT * FROM wan ORDER BY stime LIMIT 50 OFFSET 81900;

Something like the following may be faster:
SELECT * FROM wan ORDER BY stime DESC LIMIT 50;

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

Предыдущее
От: "soni de"
Дата:
Сообщение: Re: Takes too long to fetch the data from database
Следующее
От: "Doron Baranes"
Дата:
Сообщение: Perfrmance Problems (7.4.6)