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:51:49
Message-ID: 20020402105107.H72232-100000@m20.unixathome.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2 Apr 2002, Dan Langille wrote:

> 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.

I also meant to ask: Do you have any indexes? On id? On somestring?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Doug McNaught 2002-04-02 15:56:36 Re: v7.2.1 Released: Critical Bug Fix
Previous Message Dan Langille 2002-04-02 15:45:44 Re: Trivial query, large query, but very sad results.