X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 810465387A for ; Thu, 21 Apr 2005 10:06:05 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 71255-05 for ; Thu, 21 Apr 2005 13:06:00 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.183]) by svr1.postgresql.org (Postfix) with ESMTP id B017B536EB for ; Thu, 21 Apr 2005 10:05:56 -0300 (ADT) Received: from [212.227.126.207] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1DObNN-0005gh-00; Thu, 21 Apr 2005 15:05:49 +0200 Received: from [80.129.141.79] (helo=pse.dyndns.org) by mrelayng.kundenserver.de with asmtp (TLSv1:EDH-RSA-DES-CBC3-SHA:168) (Exim 3.35 #1) id 1DObNM-0000kP-00; Thu, 21 Apr 2005 15:05:49 +0200 Received: from pse1 ([192.168.0.3]) by pse.dyndns.org with esmtp (Exim 4.44) id 1DObNL-0002Gt-69; Thu, 21 Apr 2005 15:05:47 +0200 Message-ID: <4267A52A.8080504@pse-consulting.de> Date: Thu, 21 Apr 2005 13:05:46 +0000 From: Andreas Pflug User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joel Fradkin Cc: 'John A Meinel' , josh@agliodbs.com, pgsql-performance@postgresql.org Subject: Re: Joel's Performance Issues WAS : Opteron vs Xeon References: <001901c54608$b70ccfc0$797ba8c0@jfradkin> In-Reply-To: <001901c54608$b70ccfc0$797ba8c0@jfradkin> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:0ce7ee5c3478b8d72edd8e05ccd40b70 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/558 X-Sequence-Number: 11955 Joel Fradkin wrote: > I did think of something similar just loading the data tables with junk > records and I may visit that idea with Josh. > > I did just do some comparisons on timing of a plain select * from tbl where > indexed column = x and it was considerably slower then both MSSQL and MYSQL, > so I am still a bit confused. This still might be configuration issue (I ran > on my 2gig desktop and the 8 gig Linux box comparisons were all ran on the > same machines as far MSSQL, MYSQL, and Postgres. > I turned off postgres when running MYSQL and turned off MYSQL when running > postgres, MSSQL had one of the two running while I tested it. > > For the 360,000 records returned MYSQL did it in 40 seconds first run and 17 > seconds second run. > > MSSQL did it in 56 seconds first run and 16 seconds second run. > > Postgres was on the second run > Total query runtime: 17109 ms. > Data retrieval runtime: 72188 ms. > 331640 rows retrieved. Beware! From the data, I can see that you're probably using pgAdmin3. The time to execute your query including transfer of all data to the client is 17s in this example, while displaying it (i.e. pure GUI and memory alloc stuff) takes 72s. Execute to a file to avoid this. Regards, Andreas