From: | Kris Jurka <books(at)ejurka(dot)com> |
---|---|
To: | jason(at)mbi(dot)ucla(dot)edu |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: large table problem |
Date: | 2007-04-21 22:42:14 |
Message-ID: | Pine.BSO.4.64.0704211839040.29155@leary.csoft.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Fri, 20 Apr 2007, Jason Nerothin wrote:
> I'm trying to work my way around a large query problem.
>
> Not too unexpectedly, the app server (EJB3/JPA) is choking on the queries
> which are "unnamed native queries" in Java parliance. Work-around attempt 1
> was to call directly to the JDBC driver, but the cursor doesn't dispose of
> the memory in the ResultSet once I've passed it by (OutOfMemoryError) and
> the documentation suggests that cursor behavior is a little buggy for the
> current postgres driver. (The docs suggest implementing a custom stored
> procedure to provide iteration.)
I'm not sure what documentation you're reading:
http://jdbc.postgresql.org/documentation/82/query.html#query-with-cursor
and it works as adverstised.
Kris Jurka
From | Date | Subject | |
---|---|---|---|
Next Message | Ron Johnson | 2007-04-21 23:13:11 | Re: PostgreSQL configuration |
Previous Message | Tom Lane | 2007-04-21 22:41:03 | Re: ERROR: Failed to build any 5-way joins |