Re: JDBC and processing large numbers of rows - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: JDBC and processing large numbers of rows
Date
Msg-id Pine.BSO.4.56.0405120453560.5292@leary.csoft.net
Whole thread Raw
In response to Re: JDBC and processing large numbers of rows  (Guido Fiala <guido.fiala@dka-gmbh.de>)
Responses Re: JDBC and processing large numbers of rows
List pgsql-jdbc

On Wed, 12 May 2004, Guido Fiala wrote:

> Reading all this i'd like to know if all this isn't just a tradeof between
> _where_ the memory is consumed?
>
> If your backend uses Cursors - it caches the whole resultset and probably
> starts swapping and gets slow (needs the memory of all users).
>

The backend spools to a file when a materialized cursor uses more than
sort_mem amount of memory.  This is not quite the same as swapping as it
will consume disk bandwidth, but it won't hog memory from other
applications.

Kris Jurka

pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: JDBC and processing large numbers of rows
Next
From: Oliver Jowett
Date:
Subject: Re: JDBC and processing large numbers of rows