Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 840AF1337B83 for ; Thu, 12 May 2011 00:12:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 54016-04 for ; Thu, 12 May 2011 03:12:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [173.230.139.50]) by mail.postgresql.org (Postfix) with ESMTP id 65331133740B for ; Thu, 12 May 2011 00:12:51 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by www.postnewspapers.com.au (Postfix) with ESMTP id 1CEB0881; Wed, 11 May 2011 23:12:51 -0400 (EDT) X-Virus-Scanned: amavisd-new at postnewspapers.com.au.com Received: from www.postnewspapers.com.au ([127.0.0.1]) by localhost (www.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id wvbwwnxT5MG5; Wed, 11 May 2011 23:12:51 -0400 (EDT) Received: from mail.postnewspapers.com.au (ppp171-128.static.internode.on.net [150.101.171.128]) by www.postnewspapers.com.au (Postfix) with ESMTP id AC3C42D; Wed, 11 May 2011 23:12:50 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id B3B0CAED90; Thu, 12 May 2011 11:12:49 +0800 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (mail.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id G-sAWGMm60fq; Thu, 12 May 2011 11:12:49 +0800 (WST) Received: from [10.1.1.5] (124-169-254-58.dyn.iinet.net.au [124.169.254.58]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTPSA id 50378AECBD; Thu, 12 May 2011 11:12:49 +0800 (WST) Message-ID: <4DCB5030.1020706@postnewspapers.com.au> Date: Thu, 12 May 2011 11:12:48 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Thunderbird/3.1.10 MIME-Version: 1.0 To: Israel Ben Guilherme Fonseca , List Subject: Re: Incoming/Sent traffic data References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201105/20 X-Sequence-Number: 21850 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