Re: [QUESTIONS] JDBC ResultSet size limit? - Mailing list pgsql-interfaces

From Peter T Mount
Subject Re: [QUESTIONS] JDBC ResultSet size limit?
Date
Msg-id Pine.LNX.3.95.980417171412.29578A-100000@maidast.demon.co.uk
Whole thread Raw
List pgsql-interfaces
[thread moved to interfaces list]

On Thu, 16 Apr 1998, Mike Engelhart wrote:

> Is there a maximum size of a ResultSet, i.e approximately how many rows can
> a ResultSet in an applet hold?

It's limited by amount of memory available to the applet or application.

Like libpq, it retrieves the entire result in one go, so if the result is
large, then you have to wait while the result is retrieved.

Because of this, and if you are expecting a large amount of data to be
retrieved, then you'd be advised to use cursors.

Also, if you get out of memory errors, this doesn't mean that you have run
out of memory. In Java, the VM has a default setting for the amount of
memory to use. There are command line options to increase this. However,
I'm not sure how you can do this for applets (if at all possible).

--
Peter T Mount  petermount@earthling.net or pmount@maidast.demon.co.uk
Main Homepage: http://www.demon.co.uk/finder
Work Homepage: http://www.maidstone.gov.uk Work EMail: peter@maidstone.gov..uk


pgsql-interfaces by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: [INTERFACES] Solaris 2.6 binary for Postgresql (fwd)
Next
From: Peter T Mount
Date:
Subject: Re: [INTERFACES] jdbc fails to compile