Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id CE6E89FA026 for ; Fri, 26 Oct 2007 11:13:17 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 14003-09 for ; Fri, 26 Oct 2007 11:13:00 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by postgresql.org (Postfix) with ESMTP id 537299FA4AA for ; Fri, 26 Oct 2007 11:13:06 -0300 (ADT) Received: from [192.168.0.251] ([71.251.196.74]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JQI00B72VHHRP10@vms048.mailsrvcs.net> for pgsql-performance@postgresql.org; Fri, 26 Oct 2007 09:12:54 -0500 (CDT) Date: Fri, 26 Oct 2007 10:12:53 -0400 From: Jean-David Beyer Subject: Re: Bunching "transactions" In-reply-to: <60lk9q9b2h.fsf@dba2.int.libertyrms.com> To: pgsql-performance@postgresql.org Message-id: <4721F5E5.1020808@verizon.net> Organization: Institute for Regimented Whimsey MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Enigmail-Version: 0.94.0.0 References: <4720B680.5060407@verizon.net> <60k5pbcc50.fsf@dba2.int.libertyrms.com> <4720EB53.6070009@verizon.net> <60lk9q9b2h.fsf@dba2.int.libertyrms.com> User-Agent: Thunderbird 1.5.0.9 (X11/20070317) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/300 X-Sequence-Number: 27322 Chris Browne wrote: > Further, the Right Thing is to group related data together, and come > up with a policy that is driven primarily by the need for data > consistency. If things work well enough, then don't go off trying to > optimize something that doesn't really need optimization, and perhaps > break the logic of the application. Right. I think it was Jon Louis Bently who wrote (in his book, "Writing Efficient Programs") something to the effect, "Premature optimization is the root of all evil." Just because so much of it broke the logic of the application (and did not help anyway). (Gotta profile first, for one thing.) I had a boss once who insisted we write everyting in assembly language for efficiency. We did not even know what algorithms we needed for the application. And at the time (System 360 days), IBM did not even publish the execution times for the instruction set of the machine we were using because so many executed in zero-time -- overlapped with other instructions, local caching in the processor, locality of memory reference, and so on. To get efficiency, you must first get your algorithms right, including getting the best ones for the problem at hand. -- .~. Jean-David Beyer Registered Linux User 85642. /V\ PGP-Key: 9A2FC99A Registered Machine 241939. /( )\ Shrewsbury, New Jersey http://counter.li.org ^^-^^ 10:05:01 up 3 days, 2:23, 1 user, load average: 4.10, 4.24, 4.18