pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedProblems with big tables.
4+ messages / 3 participants
[nested] [flat]
* Problems with big tables.
@ 2004-08-06 17:53 Jose Miguel Madinaveitia Ramirez <miguelmr@servidor.unam.mx>
0 siblings, 2 replies; 4+ messages in thread
From: Jose Miguel Madinaveitia Ramirez @ 2004-08-06 17:53 UTC (permalink / raw)
To: pgsql-jdbc
Hi, I have a problem to obtain big tables (1 million records) with the
jdbc driver.
The out of memory error is throw by the executeQuery().
The fetchsize() function does not work.?
sorry for my english.
Thanks.
saludos.
miguel.
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Problems with big tables.
@ 2004-08-06 19:21 Dave Cramer <pg@fastcrypt.com>
parent: Jose Miguel Madinaveitia Ramirez <miguelmr@servidor.unam.mx>
1 sibling, 0 replies; 4+ messages in thread
From: Dave Cramer @ 2004-08-06 19:21 UTC (permalink / raw)
To: Jose Miguel Madinaveitia Ramirez <miguelmr@servidor.unam.mx>; +Cc: pgsql-jdbc
Jose,
Have you tried the latest driver, and server, setFetchSize() is
implemented on those.
Dave
On Fri, 2004-08-06 at 13:53, Jose Miguel Madinaveitia Ramirez wrote:
> Hi, I have a problem to obtain big tables (1 million records) with the
> jdbc driver.
> The out of memory error is throw by the executeQuery().
> The fetchsize() function does not work.?
>
> sorry for my english.
>
> Thanks.
>
> saludos.
> miguel.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
>
--
Dave Cramer
519 939 0336
ICQ # 14675561
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Problems with big tables.
@ 2004-08-06 22:10 Oliver Jowett <oliver@opencloud.com>
parent: Jose Miguel Madinaveitia Ramirez <miguelmr@servidor.unam.mx>
1 sibling, 1 reply; 4+ messages in thread
From: Oliver Jowett @ 2004-08-06 22:10 UTC (permalink / raw)
To: Jose Miguel Madinaveitia Ramirez <miguelmr@servidor.unam.mx>; +Cc: pgsql-jdbc
Jose Miguel Madinaveitia Ramirez wrote:
> Hi, I have a problem to obtain big tables (1 million records) with the
> jdbc driver.
> The out of memory error is throw by the executeQuery().
> The fetchsize() function does not work.?
With the most current drivers, cursors will only be used to
incrementally fetch data when all of these conditions are true:
- a positive fetchsize has been set via setFetchSize()
- autocommit is off
- the resultset type is TYPE_FORWARD_ONLY
- you are connecting to a 7.4 or above server
-O
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Problems with big tables.
@ 2004-08-08 18:32 Jose Miguel Madinaveitia Ramirez <miguelmr@servidor.unam.mx>
parent: Oliver Jowett <oliver@opencloud.com>
0 siblings, 0 replies; 4+ messages in thread
From: Jose Miguel Madinaveitia Ramirez @ 2004-08-08 18:32 UTC (permalink / raw)
To: pgsql-jdbc
Thanks to all for the help.
The problem is the autocommit status.
I change the values to off and the program work well ..
Oliver Jowett wrote:
> Jose Miguel Madinaveitia Ramirez wrote:
>
>> Hi, I have a problem to obtain big tables (1 million records) with the
>> jdbc driver.
>> The out of memory error is throw by the executeQuery().
>> The fetchsize() function does not work.?
>
>
> With the most current drivers, cursors will only be used to
> incrementally fetch data when all of these conditions are true:
>
> - a positive fetchsize has been set via setFetchSize()
> - autocommit is off
> - the resultset type is TYPE_FORWARD_ONLY
> - you are connecting to a 7.4 or above server
>
> -O
>
>
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2004-08-08 18:32 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-08-06 17:53 Problems with big tables. Jose Miguel Madinaveitia Ramirez <miguelmr@servidor.unam.mx>
2004-08-06 19:21 ` Dave Cramer <pg@fastcrypt.com>
2004-08-06 22:10 ` Oliver Jowett <oliver@opencloud.com>
2004-08-08 18:32 ` Jose Miguel Madinaveitia Ramirez <miguelmr@servidor.unam.mx>
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