Re: [SQL] Why very high CPU usage

From: "Josh Berkus" <josh(at)agliodbs(dot)com>
To: "Samuel J(dot) Sutjiono" <ssutjiono(at)wc-group(dot)com>, <pgsql-general(at)postgresql(dot)org>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: [SQL] Why very high CPU usage
Date: 2002-05-10 20:52:40
Message-ID: web-1456567@davinci.ethosmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

Samuel,

> I ran a search query against two tables keywords and catalog.
> Keywords table has about 765,000 records and catalog hase about
> 147,000 records. The query returns 9,000 records. This query had 70 -
> 80% of CPU usage. Are there any configuration parameter(s) that I
> need to check and change ?

And this is a problem because .... ?

High CPU usage is a *good* thing. Under perfect tuning, Postgres would
hit about 97% CPU usage ... for about 0.1 seconds (or less, depending
on your processor). The more CPU power used, the faster the query is
solved.

If you're having performaince problems, I suspect that they are located
somewhere other than your CPU.

-Josh Berkus

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Shaun Thomas 2002-05-10 21:41:45 Re: Why very high CPU usage
Previous Message Samuel J. Sutjiono 2002-05-10 19:38:11 Why very high CPU usage

Browse pgsql-sql by date

  From Date Subject
Next Message Shaun Thomas 2002-05-10 21:41:45 Re: Why very high CPU usage
Previous Message Samuel J. Sutjiono 2002-05-10 19:38:11 Why very high CPU usage