Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 457E613380E7; Tue, 17 Apr 2012 01:48:36 -0300 (ADT) Received: from gauss.credativ.com ([93.94.130.89]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SK0LC-0002yx-Rt; Tue, 17 Apr 2012 04:48:35 +0000 Received: from feivel (ip65-44-201-243.z201-44-65.customer.algx.net [65.44.201.243]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: mme@gauss.credativ.com) by gauss.credativ.com (Postfix) with ESMTPSA id 829EA550027; Tue, 17 Apr 2012 06:48:21 +0200 (CEST) Received: by feivel (Postfix, from userid 1000) id 38A519F21E; Tue, 17 Apr 2012 06:48:19 +0200 (CEST) Date: Tue, 17 Apr 2012 06:48:19 +0200 From: Michael Meskes To: Boszormenyi Zoltan Cc: Noah Misch , Michael Meskes , Robert Haas , PG Hackers , Heikki Linnakangas , Bruce Momjian Subject: Re: ECPG FETCH readahead Message-ID: <20120417044819.GA9043@feivel.credativ.lan> Mail-Followup-To: Boszormenyi Zoltan , Noah Misch , Michael Meskes , Robert Haas , PG Hackers , Heikki Linnakangas , Bruce Momjian References: <4F83E2B9.3030302@cybertec.at> <20120410143722.GC6129@tornado.leadboat.com> <20120410145501.GA11554@feivel.credativ.lan> <4F847453.9060200@cybertec.at> <20120416024636.GA4536@feivel.credativ.lan> <4F8B9F19.3040403@cybertec.at> <20120416160448.GA9968@feivel.credativ.lan> <4F8C544F.4080708@cybertec.at> <20120417035208.GA5465@feivel.credativ.lan> <4F8CEB5A.100@cybertec.at> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4F8CEB5A.100@cybertec.at> User-Agent: Mutt/1.5.21 (2010-09-15) Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/866 X-Sequence-Number: 206669 On Tue, Apr 17, 2012 at 06:02:34AM +0200, Boszormenyi Zoltan wrote: > I listed two scenarios. > 1. occasional bump of the readahead window for large requests, > for smaller requests it uses the originally set size > 2. permanent bump of the readahead window for large requests > (larger than previously seen), all subsequent requests use > the new size >=20 > Both can be implemented easily, which one do you prefer? > If you always use very large requests, 1) behaves like 2) I'd say let's go for #2. #1 is probably more efficient but not what the programmer asked us to do. After all it's easy to increase the window siz= e accordingly if you want so as a programmer. Michael --=20 Michael Meskes Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org Jabber: michael.meskes at googlemail dot com VfL Borussia! For=C3=A7a Bar=C3=A7a! Go SF 49ers! Use Debian GNU/Linux, P= ostgreSQL