From: Oliver Jowett <oliver@opencloud.com>
To: Guido Fiala <guido.fiala@dka-gmbh.de>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: fetchsize dynamically changeable?
Date: Wed, 28 Jul 2004 20:08:38 +1200
Message-ID: <41075F06.9080508@opencloud.com> (raw)
In-Reply-To: <200407280839.56336.guido.fiala@dka-gmbh.de>
References: <200407280839.56336.guido.fiala@dka-gmbh.de>
Guido Fiala wrote:
> Given all the other requirements for cursors are met, is it possible to change
> the fetchsize on the fly?
>
> e.g.
> conn.createStatement(...);
> st.setFetchsize(1);
> rs=st.executeQuery(...);//we got the first record
> st.setFetchsize(10);
> rs.next(); //now we got records nr. 2-11 in memory and sit at nr. 2
That should work.
-O
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: oliver@opencloud.com, guido.fiala@dka-gmbh.de
Subject: Re: fetchsize dynamically changeable?
In-Reply-To: <41075F06.9080508@opencloud.com>
References: <200407280839.56336.guido.fiala@dka-gmbh.de> <41075F06.9080508@opencloud.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