From: Craig Ringer <craig@postnewspapers.com.au>
To: Israel Ben Guilherme Fonseca <israel.bgf@gmail.com>
To: List <pgsql-jdbc@postgresql.org>
Subject: Re: Incoming/Sent traffic data
Date: Thu, 12 May 2011 11:12:48 +0800
Message-ID: <4DCB5030.1020706@postnewspapers.com.au> (raw)
In-Reply-To: <BANLkTi=+KqU37L7VEL4KDDqYMpTr7c-=9w@mail.gmail.com>
References: <BANLkTi=+KqU37L7VEL4KDDqYMpTr7c-=9w@mail.gmail.com>
On 05/12/2011 10:45 AM, Israel Ben Guilherme Fonseca wrote:
> Almost difference of received data size is HUGE. Do you guys have any
> idea about what could am I doing wrong? I heard something about binary
> protocol, could it help?
The total size of the transferred data in your tests appears to be tiny.
As a result, you are measuring the connection overhead of the drivers
more than anything else. The JDBC driver will be issuing a lot more SET
statements and the like during connection setup than psycopg2 does. To
see exactly what the differences are, enable full statement logging in
the server so you can see everything that's issued.
Try testing with a meaningful amount of data, or starting measuring only
after you've established a connection.
--
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 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-jdbc@postgresql.org
Cc: craig@postnewspapers.com.au, israel.bgf@gmail.com
Subject: Re: Incoming/Sent traffic data
In-Reply-To: <4DCB5030.1020706@postnewspapers.com.au>
References: <BANLkTi=+KqU37L7VEL4KDDqYMpTr7c-=9w@mail.gmail.com> <4DCB5030.1020706@postnewspapers.com.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