pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: amithbm <amithbm@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Hibernate over postgresql
Date: Thu, 5 Jun 2014 10:52:05 -0700 (PDT)
Message-ID: <1401990725669-5806233.post@n5.nabble.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

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



view thread (16+ messages)  latest in thread

Message-ID: <1401990725669-5806233.post@n5.nabble.com>
Permalink:  ../1401990725669-5806233.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1401990725669-5806233.post@n5.nabble.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-jdbc@postgresql.org
  Cc: amithbm@gmail.com
  Subject: Re: Hibernate over postgresql
  In-Reply-To: <1401990725669-5806233.post@n5.nabble.com>
  References: <1401990725669-5806233.post@n5.nabble.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