pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@2ndquadrant.com>
To: Heikki Linnakangas <hlinnakangas@vmware.com>
To: vromanov@gmail.com
To: pgsql-odbc@postgresql.org
Subject: Re: ODBC Driver performance comparison
Date: Mon, 15 Sep 2014 11:34:01 +0800
Message-ID: <54165E29.4020601@2ndquadrant.com> (raw)
In-Reply-To: <54095AE6.2010508@vmware.com>
References: <CAJ4CROherPrwrJKdNLnN+6B=RdOFmOO7ugbKEFs+GnZ8USSMMQ@mail.gmail.com>
	<54095AE6.2010508@vmware.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

On 09/05/2014 02:40 PM, Heikki Linnakangas wrote:

> Are you measuring wall-clock time or CPU time? If it's CPU time, I'm
> surprised that the I/O-related syscalls, poll(), send() and recv(), are
> so high on the profile. If not, there isn't much you can do in the
> client side to make them faster, as the time is simply spent waiting for
> the server.

There's still potentially one big thing that can be done: reduce
round-trips.

For example, the PgJDBC driver sends multi-statements to the server by
writing a bunch of bind/parse/execute messsages, *then* waiting for a
response and processing each response as it receives it.

It can be worth looking at what's happening on the wire.

-- 
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



view thread (4+ messages)

Message-ID: <54165E29.4020601@2ndquadrant.com>
Permalink:  ../54165E29.4020601@2ndquadrant.com/
Also on:    postgresql.org/message-id/54165E29.4020601@2ndquadrant.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 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-odbc@postgresql.org
  Cc: craig@2ndquadrant.com, hlinnakangas@vmware.com, vromanov@gmail.com
  Subject: Re: ODBC Driver performance comparison
  In-Reply-To: <54165E29.4020601@2ndquadrant.com>
  References: <CAJ4CROherPrwrJKdNLnN+6B=RdOFmOO7ugbKEFs+GnZ8USSMMQ@mail.gmail.com> <54095AE6.2010508@vmware.com> <54165E29.4020601@2ndquadrant.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