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

From: Dan Langille <dan(at)langille(dot)org>
To: Alexander Haväng <eel(at)musiknet(dot)se>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Trivial query, large query, but very sad results.
Date: 2002-04-02 15:45:44
Message-ID: 20020402104432.Q72232-100000@m20.unixathome.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2 Apr 2002, [iso-8859-1] Alexander Havng 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dan Langille 2002-04-02 15:51:49 Re: Trivial query, large query, but very sad results.
Previous Message Tom Lane 2002-04-02 15:41:38 Re: Trivial query, large query, but very sad results.