pgjdbc/pgjdbc GitHub issues and pull requests (mirror)
help / color / mirror / Atom feedFrom: vlsi (@vlsi) <[email protected]>
To: pgjdbc/pgjdbc <[email protected]>
Subject: [pgjdbc/pgjdbc] PR #3836: fix: improve concurrency for prepareStatement
Date: Tue, 30 Sep 2025 18:03:46 +0000
Message-ID: <[email protected]> (raw)
Previously, prepareStatement synchronized on a per-connection statement cache for parsing the statement.
Technically speaking, it is not the best idea to share the same connections across several execution threads, however, the driver does not need to heavily synchronize when parsing the SQL.
Issue 3835 shows a case it might result in a carrier thread pinning, so it still makes sense to move .create() outside of the synchronization.
The impact/improvement on the applications should be minimal provided the application do not share a connection across concurrent execution threads.
Fixes https://github.com/pgjdbc/pgjdbc/issues/3835
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 using the --to and --cc options:
reply via email
To: github://pgjdbc/pgjdbc
Cc: [email protected], [email protected]
Subject: Re: [pgjdbc/pgjdbc] PR #3836: fix: improve concurrency for prepareStatement
In-Reply-To: <<[email protected]>>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox