Re: Trivial query, large query, but very sad results.

Поиск
Список
Период
Сортировка
От Dan Langille
Тема Re: Trivial query, large query, but very sad results.
Дата
Msg-id 20020402104432.Q72232-100000@m20.unixathome.org
обсуждение исходный текст
Ответ на Trivial query, large query, but very sad results.  (Alexander Haväng <eel@musiknet.se>)
Ответы Re: Trivial query, large query, but very sad results.  (Dan Langille <dan@langille.org>)
Список pgsql-general
On Tue, 2 Apr 2002, [iso-8859-1] Alexander Hav�ng wrote:

> When I do a query, say,
> SELECT count(id) FROM bigtable WHERE somestring='something';
> then what I would expect from the database is that it would completely hog the cpu
> and disk i/o for a while until the query is completed, which on this machine well..
> should take one or two minutes. Instead, it takes 12 minutes.

Out of interest, what results do you get from select count(*) ...?  I
would expect it to be faster.



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Trivial query, large query, but very sad results.
Следующее
От: Dan Langille
Дата:
Сообщение: Re: Trivial query, large query, but very sad results.