agora inbox for pgsql-performance@postgresql.org
help / color / mirror / Atom feedFrom: Lou O'Quin <loquin@talleyds.com>
To: pgsql-performance@postgresql.org
Subject: Query performance
Date: Fri, 11 Mar 2005 11:47:54 -0700
Message-ID: <s2318583.040@mesagate.talleyds.com> (raw)
As a test, I ran a query in the pgAdmin query tool, which returns about 15K records from a PostgreSQL v8.01 table on my Win2K server.
I ran the same query from the local server, from another PC on the same 100 mbit local network, and from a PC on a different network, over the internet.
The times for the query to run and the data to return for each of the three
locations are shown here: Local Server : 571+521 ms Local network: 1187+1266 ms Internet:14579+4016 msMy question is this: Why does the execution time for the query to run increase so much? Since the query should be running on the server, it's time should be somewhat independent of the network transport delay. (unlike the data transport time) However, it appears to actually be hypersensitive to the transport delay. The ratios of time for the data transport (assuming 1 for the local server) are:
1 : 2.43 : 7.71
whereas the query execution time ratios are:
1 : 2.08 : 25.5 (!!!)
Obviously, the transport times will be greater. But why does the execution time bloat so?
view thread (48+ messages) latest in thread
Message-ID: <s2318583.040@mesagate.talleyds.com>
Permalink: ../s2318583.040@mesagate.talleyds.com/
Also on: postgresql.org/message-id/s2318583.040@mesagate.talleyds.com
reply
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: loquin@talleyds.com
Subject: Re: Query performance
In-Reply-To: <s2318583.040@mesagate.talleyds.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox