Re: streaming result sets: progress - Mailing list pgsql-jdbc

From Nic Ferrier
Subject Re: streaming result sets: progress
Date
Msg-id 873cpi4sb0.fsf@pooh-sticks-bridge.tapsellferrier.co.uk
Whole thread Raw
In response to Re: streaming result sets: progress  (Scott Lamb <slamb@slamb.org>)
List pgsql-jdbc
slamb writes:
> Okay, I understand now. The confusion is, you wrote this:
>
>       Statement st = connection.createStatement(
>               ResultSet.CLOSE_CURSORS_AT_COMMIT,
>               ResultSet.CONCUR_READ_ONLY);
>
> but evil gnomes changed the bits in my copy of the email to what I
> expected, so I didn't notice a difference. ;) I meant this:
>
>       Statement st = connection.createStatement(
>               ResultSet.TYPE_FORWARD_ONLY,
>               ResultSet.CONCUR_READ_ONLY,
>               ResultSet.CLOSE_CURSORS_AT_COMMIT);
>
> Type, concurrency, and holdability are all orthogonal parameters to
> createStatement and prepareStatement.

I've looked into this a bit more... I'm not gonna do this right now
because this call is only JDBC3 compatible.

We'll have to stick with the fetch size method I think.


Nic

pgsql-jdbc by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Measuring time of select query
Next
From: Dave Cramer
Date:
Subject: Re: Measuring time of select query