pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <craig@2ndquadrant.com>
To: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: executebatch:
Date: Wed, 7 Oct 2015 19:43:19 +0800
Message-ID: <CAMsr+YHdHiZC3A+fa4dTpFWRUN-ec7pAQp--XVqdkFCJDv29rA@mail.gmail.com> (raw)
In-Reply-To: <CAB=Je-GagyN1DH0UG=u62RHCzQ4ghxTVh4FVoBmkNAOeRc+=+g@mail.gmail.com>
References: <CAB=Je-GagyN1DH0UG=u62RHCzQ4ghxTVh4FVoBmkNAOeRc+=+g@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

For the record, fixed by Vladimir in
https://github.com/pgjdbc/pgjdbc/pull/380 after comment discussion on
https://github.com/pgjdbc/pgjdbc/commit/a6bd36faaedc779f932fa76f52bab9550f0fcd6d#diff-54e833c3fd2541...

On 2 October 2015 at 21:29, Vladimir Sitnikov
<sitnikov.vladimir@gmail.com> wrote:
> Hi,
>
> I'm observing a performance degradation in executeBatch case when
> upgrading 9.3-1102.jdbc41 -> 9.4-1203.
>
> 1102 -- 0.78 sec / executeBatch
> 1203 -- 1.8 sec / executeBatch
>
> It looks like the degradation is caused by the fact that two "flag"
> constants share the same value:
> QUERY_FORCE_DESCRIBE_PORTAL = 128; and QUERY_DISALLOW_BATCHING = 128;
> https://github.com/pgjdbc/pgjdbc/commit/a6bd36faaedc779f932fa76f52bab9550f0fcd6d#diff-54e833c3fd2541...
> https://github.com/pgjdbc/pgjdbc/commit/a6bd36faaedc779f932fa76f52bab9550f0fcd6d#diff-54e833c3fd2541...
>
> Profiling shows that 1203 does QueryExecutorImpl.flushIfDeadlockRisk
> -> sendSync a lot.
>
> I wonder if reusing 128 was intentional or not.
> I'll try modifying QUERY_FORCE_DESCRIBE_PORTAL=512 to see if that helps.
>
> --
> Regards,
> Vladimir Sitnikov
>
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc



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


-- 
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 (2+ messages)

Message-ID: <CAMsr+YHdHiZC3A+fa4dTpFWRUN-ec7pAQp--XVqdkFCJDv29rA@mail.gmail.com>
Permalink:  ../CAMsr+YHdHiZC3A+fa4dTpFWRUN-ec7pAQp--XVqdkFCJDv29rA@mail.gmail.com/
Also on:    postgresql.org/message-id/CAMsr+YHdHiZC3A+fa4dTpFWRUN-ec7pAQp--XVqdkFCJDv29rA@mail.gmail.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: craig@2ndquadrant.com, sitnikov.vladimir@gmail.com
  Subject: Re: executebatch:
  In-Reply-To: <CAMsr+YHdHiZC3A+fa4dTpFWRUN-ec7pAQp--XVqdkFCJDv29rA@mail.gmail.com>
  References: <CAB=Je-GagyN1DH0UG=u62RHCzQ4ghxTVh4FVoBmkNAOeRc+=+g@mail.gmail.com> <CAMsr+YHdHiZC3A+fa4dTpFWRUN-ec7pAQp--XVqdkFCJDv29rA@mail.gmail.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