X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id E9E15D1E20E for ; Wed, 12 May 2004 10:25:49 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 53902-02 for ; Wed, 12 May 2004 10:25:31 -0300 (ADT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 8B97AD1E214 for ; Wed, 12 May 2004 10:25:27 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1BNthf-0000xn-00; Thu, 13 May 2004 01:23:19 +1200 Message-ID: <40A22544.8000206@opencloud.com> Date: Thu, 13 May 2004 01:23:16 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Guido Fiala Cc: pgsql-jdbc@postgresql.org Subject: Re: JDBC and processing large numbers of rows References: <20040511103520.1ADC6D1B1EE@svr1.postgresql.org> <200405120837.42865.guido.fiala@dka-gmbh.de> <200405121431.08734.guido.fiala@dka-gmbh.de> In-Reply-To: <200405121431.08734.guido.fiala@dka-gmbh.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200405/79 X-Sequence-Number: 10089 Guido Fiala wrote: > Am Mittwoch, 12. Mai 2004 12:00 schrieb Kris Jurka: > >>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. > > > Well thats good on one side, but from the side of the user its worse: > > He will see a large drop in performance (factor 1000) ASAP the database starts > using disk for such things. Ok - once the database is to large to be hold in > memory it is disk-bandwith-limited anyway... What about the kernel cache? I doubt you'll see a *sudden* drop in performance .. it'll just degrade gradually towards disk speeds as your resultset gets larger. -O