Re: Server side resultset search (for performance reasons) - Mailing list pgsql-jdbc

From Tom Lane
Subject Re: Server side resultset search (for performance reasons)
Date
Msg-id 25216.1060005940@sss.pgh.pa.us
Whole thread Raw
In response to Re: Server side resultset search (for performance reasons)  ("Scot P. Floess" <floess@mindspring.com>)
Responses Re: Server side resultset search (for performance reasons)
Re: Server side resultset search (for performance reasons)
List pgsql-jdbc
>> The application is returning 300,000 records in some SELECT clause (a
>> ResultSet) this finish the client's JVM memory, so my solution to this
>> was to use the SELECT's LIMIT clause returning 600 records and making
>> the internal logic that when the user gets past the 600th record the
>> application automatically issues another query with LIMIT and OFFSET
>> clauses causing a little delay but this is better than finishing the
>> memory in the client's machine (if you know a better solution or have
>> some advices, please let me know).

I'm surprised no one has yet suggested using a cursor.

            regards, tom lane

pgsql-jdbc by date:

Previous
From: "Scot P. Floess"
Date:
Subject: Re: Server side resultset search (for performance reasons)
Next
From: Erik Price
Date:
Subject: Re: java object store