Re: very large result sets and ResultSet.relative() to jump to a desired offset

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Matt Magoffin <postgresql(dot)org(at)msqr(dot)us>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: very large result sets and ResultSet.relative() to jump to a desired offset
Date: 2008-09-25 06:44:24
Message-ID: 48DB3348.7000307@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Matt Magoffin wrote:
>> I'd suggest using LIMIT/OFFSET in your query.
>>
>> -O
>
> Hmm, I had thought of that but was hoping to stay just in generic JDBC,
> without Postgres specific SQL changes.

Doing it in the query does have the advantage that the server can
potentially come up with a better query plan.. assuming that it's common
to page through less than the full query output.

-O

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Albe Laurenz 2008-09-25 06:53:43 Re: COPY support in JDBC driver?
Previous Message Matt Magoffin 2008-09-24 23:01:45 Re: very large result sets and ResultSet.relative() to jump to a desired offset