X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 31B109FA2FA for ; Wed, 10 May 2006 12:12:15 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 16075-04 for ; Wed, 10 May 2006 12:11:59 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from exchange.g2switchworks.com (mail.g2switchworks.com [63.87.162.25]) by postgresql.org (Postfix) with ESMTP id B1F799FA1B0 for ; Wed, 10 May 2006 12:11:58 -0300 (ADT) Received: from 10.10.1.37 ([10.10.1.37]) by exchange.g2switchworks.com ([10.10.1.2]) with Microsoft Exchange Server HTTP-DAV ; Wed, 10 May 2006 15:11:57 +0000 Received: from state.g2switchworks.com by mail.g2switchworks.com; 10 May 2006 10:11:57 -0500 Subject: Re: in memory views From: Scott Marlowe To: Thomas Vatter Cc: Tino Wildenhain , pgsql-performance@postgresql.org In-Reply-To: <4461B899.4030502@network-inventory.de> References: <4461AFFF.7060200@network-inventory.de> <4461B3DE.6030700@wildenhain.de> <4461B899.4030502@network-inventory.de> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1147273917.9755.22.camel@state.g2switchworks.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Wed, 10 May 2006 10:11:57 -0500 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/258 X-Sequence-Number: 19045 On Wed, 2006-05-10 at 04:55, Thomas Vatter wrote: > Tino Wildenhain wrote: > > > Thomas Vatter schrieb: > > > >> is there a possibility for creating views or temp tables in memory to > >> avoid disk io when user makes select operations? > > > > > > No need. The data will be available in OS and database caches if > > they are really required often. If not, tune up the caches and > > do a regular "pre select". > > > > Regards > > Tino > > > > > > hmm, I am selecting a resultset with 1300 rows joined from 12 tables. > with jdbc I am waiting 40 seconds until the first row appears. The > following rows appear really fast but the 40 seconds are a problem. Are you selecting the whole set at once? Or are you placing it into a cursor? What happens if you do this by declaring it as a cursor and then fetching the first row?