pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brian G. Huber <brianghuber@yahoo.com>
To: pgsql-jdbc@postgresql.org
Subject: Forcing use of cursor for large result sets
Date: Sun, 6 Jun 2004 00:34:51 -0500
Message-ID: <002e01c44b87$fd7bbe70$6400a8c0@bghthinkpad> (raw)

Hello all - 

I am attempting to force the use of a cursor for a resultset.  I have tried both forward-only and scrollable statements and am setting fetch size to 100 with a call to setFechSize(100) on the statement.  However, I do not think a cursor is being used because the entire result set is trying to cache, resulting in an outofMemoryError.  I am using pg74.213.jdbc3.jar with 7.4.2.

Any advice appreciated... Thanks-
BGH

view thread (2+ messages)  latest in thread

Message-ID: <002e01c44b87$fd7bbe70$6400a8c0@bghthinkpad>
Permalink:  ../002e01c44b87$fd7bbe70$6400a8c0@bghthinkpad/
Also on:    postgresql.org/message-id/002e01c44b87$fd7bbe70$6400a8c0@bghthinkpad

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: brianghuber@yahoo.com
  Subject: Re: Forcing use of cursor for large result sets
  In-Reply-To: <002e01c44b87$fd7bbe70$6400a8c0@bghthinkpad>
  References: <002e01c44b87$fd7bbe70$6400a8c0@bghthinkpad>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox