Re: Server side resultset search (for performance reasons)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jesus Sandoval <meli(at)mzt(dot)megared(dot)net(dot)mx>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Server side resultset search (for performance reasons)
Date: 2003-08-04 14:05:40
Message-ID: 25216.1060005940@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Nic 2003-08-04 14:15:51 Re: Server side resultset search (for performance reasons)
Previous Message Erik Price 2003-08-04 14:02:39 Re: java object store