pgjdbc/pgjdbc GitHub issues and pull requests (mirror)
help / color / mirror / Atom feedFrom: mirraj2 (@mirraj2) <[email protected]>
To: pgjdbc/pgjdbc <[email protected]>
Subject: Re: [pgjdbc/pgjdbc] issue #2656: Adaptive Fetch doesn't enable ResultSet streaming
Date: Wed, 02 Nov 2022 21:41:07 +0000
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
@davecramer - the code you pasted demonstrates what I verified _does_ work correctly. If you setFetchSize() on the Statement it will work. The bug is not about setFetchSize(). It is about using the "adaptiveFetch" feature. AdaptiveFetch should automatically change the fetch size based on the size of each row.
To test what I'm seeing, comment out the "setFetchSize" row, and use something like the following connection string:
jdbc:postgresql://localhost:5432/test?adaptiveFetch=true&defaultRowFetchSize=10&maxResultBuffer=128M
I would urge you to set these parameters via the connection string instead of via Properties, because maybe the bug has to do with settings via the query string.
view thread (12+ messages) latest in thread
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] issue #2656: Adaptive Fetch doesn't enable ResultSet streaming
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