From: Dianne Yumul <dianne@wellsgaming.com>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: No. of rows on result set
Date: Fri, 15 Jul 2005 09:37:00 -0700
Message-ID: <f146d61ff955f74f02aea434c5d33a1c@wellsgaming.com> (raw)
In-Reply-To: <42D6FF0F.1020102@opencloud.com>
References: <dd6acca63a46a619b8d927b1fda99f60@wellsgaming.com>
<42D6FF0F.1020102@opencloud.com>
On Jul 14, 2005, at 5:10 PM, Oliver Jowett wrote:
> If you need to use last(), then TYPE_SCROLL_INSENSITIVE is the way to
> go.
>
> Note that this means the driver will retrieve the entire resultset in
> one go rather than possibly using cursors (if you've set fetchsize and
> have autocommit off) -- you might have problems with big resultsets. If
> so I'd go with COUNT.
Ok, looking at the apps, the query either returns one row or a large
resultset. But using TYPE_SCROLL_INSENSITIVE should not be a problem
because fetchsize is not set and autocommit is not off.
Thank you so much for the great help.
Dianne
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: dianne@wellsgaming.com, oliver@opencloud.com
Subject: Re: No. of rows on result set
In-Reply-To: <f146d61ff955f74f02aea434c5d33a1c@wellsgaming.com>
References: <dd6acca63a46a619b8d927b1fda99f60@wellsgaming.com> <42D6FF0F.1020102@opencloud.com> <f146d61ff955f74f02aea434c5d33a1c@wellsgaming.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