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 E08489FA218 for ; Fri, 26 May 2006 16:40:31 -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 03523-01 for ; Fri, 26 May 2006 16:40:24 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.229]) by postgresql.org (Postfix) with ESMTP id CA38B9FA12E for ; Fri, 26 May 2006 16:40:24 -0300 (ADT) Received: by wr-out-0506.google.com with SMTP id 50so146851wri for ; Fri, 26 May 2006 12:40:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sXcsG6lEvM/3OS8RLJ37xpb03HtmcG2E0HzfSrai0goDuJSOODyheJl+LnDPIFli6ekQnA1JQaCEJb11XbX2FqDdcYni+a6kKBKo6l53znKo6X6yXllBfObJhVB8NcqXPFh1adfOLKLB6Usei8hQ/XFrRAQta+q6TYP5OFvskoU= Received: by 10.65.228.12 with SMTP id f12mr646491qbr; Fri, 26 May 2006 12:40:23 -0700 (PDT) Received: by 10.65.137.19 with HTTP; Fri, 26 May 2006 12:40:22 -0700 (PDT) Message-ID: Date: Fri, 26 May 2006 15:40:22 -0400 From: "Merlin Moncure" To: "Tom Lane" Subject: Re: is it possible to make this faster? Cc: "Postgresql Performance" In-Reply-To: <27570.1148666115@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <15919.1148590347@sss.pgh.pa.us> <16119.1148591497@sss.pgh.pa.us> <25668.1148653358@sss.pgh.pa.us> <27137.1148663259@sss.pgh.pa.us> <27570.1148666115@sss.pgh.pa.us> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/498 X-Sequence-Number: 19285 On 5/26/06, Tom Lane wrote: > > mysql> select user_id, acc_id, max(sample_date) from usage_samples grou= p by 1,2 > > 939 rows in set (0.07 sec) > > 0.07 seconds is not impossibly out of line with my result of 0.15 sec, > maybe your machine is just 2X faster than mine. This is a 2.8GHz dual > Xeon EM64T, what are you testing? You said "less than 20 msec" before, > what was that on? 600 mhz p3: 70 ms, 1100 ms slow case 1600 mhz p4: 10-30ms (mysql timer not very precise) 710ms slow case quad opteron 865: 0 :-) dual p3 1133 Mhz xeon, mysql 4.0.16: 500 ms using steinar's 'substitute group by' for pg I get 40ms on the p3 and low times on all else. your time of 150 ms is looking like the slow case on my results. merlin