From: Merlin Moncure <mmoncure@gmail.com>
To: Merlin Moncure <mmoncure@gmail.com>
To: Pg Performance list <pgsql-performance@postgresql.org>
Subject: Re: odd variances in count(*) times
Date: Mon, 9 Oct 2006 14:41:07 -0400
Message-ID: <b42b73150610091141n487ba223pfa56a639105f0e9f@mail.gmail.com> (raw)
In-Reply-To: <20061009183026.GT24675@kenobi.snowman.net>
References: <b42b73150610091117n29e8d9d5yed07abe8a228593e@mail.gmail.com>
<20061009183026.GT24675@kenobi.snowman.net>
On 10/9/06, Stephen Frost <sfrost@snowman.net> wrote:
> * Merlin Moncure (mmoncure@gmail.com) wrote:
> > explain analyze select 5000!;
> > A: 2.4 seconds
> > B: 1.8 seconds
> >
> > explain analyze select count(*) from generate_series(1,500000);
> > A: 0.85 seconds
> > B: 4.94 seconds
>
> Try w/o the explain analyze. It adds quite a bit of overhead and that
> might be inconsistant between the systems (mainly it may have to do with
> the gettimeofday() calls being implemented differently between Windows
> and Linux..).
that was it. amd system now drop to .3 seconds, windows .6. (doing
time foo > psql -c bar > file). thanks...
merlin
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: mmoncure@gmail.com
Subject: Re: odd variances in count(*) times
In-Reply-To: <b42b73150610091141n487ba223pfa56a639105f0e9f@mail.gmail.com>
References: <b42b73150610091117n29e8d9d5yed07abe8a228593e@mail.gmail.com> <20061009183026.GT24675@kenobi.snowman.net> <b42b73150610091141n487ba223pfa56a639105f0e9f@mail.gmail.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