From: Josh Berkus <josh@agliodbs.com>
To: Samuel J. Sutjiono <ssutjiono@wc-group.com>
To: pgsql-general@postgresql.org
To: pgsql-sql@postgresql.org
Subject: Re: [SQL] Why very high CPU usage
Date: Fri, 10 May 2002 13:52:40 -0700
Message-ID: <web-1456567@davinci.ethosmedia.com> (raw)
In-Reply-To: <395901c1f85a$38cf2850$110a010a@headquarters.wcgroup.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, ssutjiono@wc-group.com, pgsql-general@postgresql.org
Subject: Re: [SQL] Why very high CPU usage
In-Reply-To: <web-1456567@davinci.ethosmedia.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox