Re: Performance with very large tables

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Performance with very large tables
Дата
Msg-id 45AB784C.2020306@archonet.com
обсуждение исходный текст
Ответ на Re: Performance with very large tables  ("Jan van der Weijde" <Jan.van.der.Weijde@attachmate.com>)
Список pgsql-general
Jan van der Weijde wrote:
> That is exactly the problem I think. However I do not deliberately
> retrieve the entire table. I use the default settings of the PostgreSQL
> installation and just execute a simple SELECT * FROM table.
> I am using a separate client and server (both XP in the test
> environment), but that should not make much difference.
> I would expect that the default behavior of PostgreSQL should be such
> that without LIMIT, a SELECT returns records immediately.

No it doesn't. You've asked for all the records, so it assumes you want
all the records. If you want a few at a time, use a cursor.
--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: "Jan van der Weijde"
Дата:
Сообщение: Re: Performance with very large tables
Следующее
От: "Gregory S. Williamson"
Дата:
Сообщение: Re: Performance with very large tables