From: Steinar H. Gunderson <sgunderson@bigfoot.com>
To: tsuraan <tsuraan@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Scaling concerns
Date: Sat, 16 Dec 2006 18:32:21 +0100
Message-ID: <20061216173221.GA25410@uio.no> (raw)
In-Reply-To: <84fb38e30612160926l609ec55cs352b2495289bae0c@mail.gmail.com>
References: <84fb38e30612160926l609ec55cs352b2495289bae0c@mail.gmail.com>
On Sat, Dec 16, 2006 at 11:26:02AM -0600, tsuraan wrote:
> Even an operation like "select count(*) from messages" can take minutes,
> with a totally idle system. Postgres seems to be the most scalable Free
> database out there, so I must be doing something wrong.
Unqualified SELECT COUNT(*) FROM foo is one of the most expensive operations
you can do on your system, since the visibility information has to be checked
on disk for each row. Instead, try real queries on real data, and post here
if some are too slow for you.
/* Steinar */
--
Homepage: http://www.sesse.net/
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-performance@postgresql.org
Cc: sgunderson@bigfoot.com, tsuraan@gmail.com
Subject: Re: Scaling concerns
In-Reply-To: <20061216173221.GA25410@uio.no>
* 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