From: Craig Ringer <ringerc@ringerc.id.au>
To: Anibal David Acosta <aa@devshock.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: query performance, where goes time?
Date: Thu, 06 Sep 2012 11:26:00 +1000
Message-ID: <5047FBA8.1030909@ringerc.id.au> (raw)
In-Reply-To: <00c801cd8bb0$2a0bbe10$7e233a30$@devshock.com>
References: <00c801cd8bb0$2a0bbe10$7e233a30$@devshock.com>
On 09/06/2012 07:48 AM, Anibal David Acosta wrote:
> Using explain analyze I saw that many of my queries run really fast,
> less than 1 milliseconds, for example the analyze output of a simple
> query over a table with 5millions of records return "Total runtime:
> 0.078 ms"
>
> But the real time is a lot more, about 15 ms, in fact the pgadmin show
> this value.
>
> So, where goes the others 14.2 ms?
Client-side latency, time spent transmitting query results, and network
latency.
You'll see much less difference in queries that take more meaningful
amounts of time. This query is so fast that timing accuracy will be an
issue on some systems, and so will scheduler jitter etc.
--
Craig Ringer
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: ringerc@ringerc.id.au, aa@devshock.com
Subject: Re: query performance, where goes time?
In-Reply-To: <5047FBA8.1030909@ringerc.id.au>
* 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