Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group