Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wsbpj-0007gR-M1 for pgsql-jdbc@arkaria.postgresql.org; Thu, 05 Jun 2014 17:52:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wsbpi-0005jm-W3 for pgsql-jdbc@arkaria.postgresql.org; Thu, 05 Jun 2014 17:52:11 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wsbpi-0005jf-11 for pgsql-jdbc@postgresql.org; Thu, 05 Jun 2014 17:52:10 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1Wsbpe-00016F-Fj for pgsql-jdbc@postgresql.org; Thu, 05 Jun 2014 17:52:07 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Wsbpd-0005zk-Nk for pgsql-jdbc@postgresql.org; Thu, 05 Jun 2014 10:52:05 -0700 Date: Thu, 5 Jun 2014 10:52:05 -0700 (PDT) From: amithbm To: pgsql-jdbc@postgresql.org Message-ID: <1401990725669-5806233.post@n5.nabble.com> Subject: Hibernate over postgresql MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 2.2 (++) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Hi, I'm using Hibernate to perform SELECT, INSERT queries over a postgresql database server 9.2.7 version. I'm seeing ROLLBACK, S_2 queries being run after SELECT for which the client is consuming 20-30ms to send the ACK. I understand this is the extended query protocol feature of the v3 JDBC driver. And for the INSERT query there's a COMMIT being called for which the server responds immediately but again the client takes another 20-30ms to send the ACK. I think the problem can be solved by switching to protocolVersion to 2 (It was mentioned as a solution in one of the threads but anyways didn't work for me). But I guess this should be the last resort. So the question is, is there a way to make my client not wait to send the ACK and make it asynchronous so that my round-trip time will be less. Basically I want to know if I'm making a blocking call in my hibernate client. Surprisingly by running the same client on a 9.2.4 postgresql server these calls seem to be asynchronous and I'm getting much better RTT. Does it mean that the server can control whether client can be asynchronous or not? I'd very much appreciate your help on this. Thanks. -- View this message in context: http://postgresql.1045698.n5.nabble.com/Hibernate-over-postgresql-tp5806233.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com. -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc