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 55E0052965 for ; Sat, 30 Jul 2005 07:36:12 -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 15216-07 for ; Sat, 30 Jul 2005 10:36:10 +0000 (GMT) Received: from veggie-fuel.com (veggie-fuel.com [200.46.208.238]) by svr1.postgresql.org (Postfix) with ESMTP id E8B3A52AC6 for ; Sat, 30 Jul 2005 07:36:09 -0300 (ADT) Received: from localhost (unknown [200.46.204.144]) by veggie-fuel.com (Postfix) with ESMTP id A1DFB35F9E5 for ; Sat, 30 Jul 2005 10:36:11 +0000 (GMT) Received: from veggie-fuel.com ([200.46.208.238]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 17010-07; Sat, 30 Jul 2005 10:35:58 +0000 (GMT) Received: from [10.0.0.7] (63-228-143-68.phnx.qwest.net [63.228.143.68]) by veggie-fuel.com (Postfix) with ESMTP id 1E6BB35F9DE; Sat, 30 Jul 2005 10:35:59 +0000 (GMT) Subject: Re: Performance problems testing with Spamassassin From: Karim Nassar Reply-To: karim.nassar@acm.org To: Matthew Schumacher Cc: pgsql-performance@postgresql.org In-Reply-To: <42EB3E63.6040300@aptalaska.net> References: <3E37B936B592014B978C4415F90D662D0C4221@MI8NYCMAIL06.Mi8.com> <200507290947.03700.josh@agliodbs.com> <1122683983.11869.150.camel@localhost.localdomain> <42EB3E63.6040300@aptalaska.net> Content-Type: text/plain Date: Sat, 30 Jul 2005 03:34:00 -0700 Message-Id: <1122719640.7426.173.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.026 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/494 X-Sequence-Number: 13735 On Sat, 2005-07-30 at 00:46 -0800, Matthew Schumacher wrote: > I'll do some more testing on Monday, perhaps grouping even 200 tokens at > a time using your method will yield significant gains, but probably not > as dramatic as it does using my loading benchmark. In that case, some of the clauses could be simplified further since we know that we are dealing with only one user. I don't know what that will get us, since postgres is so damn clever. I suspect that the aggregate functions will be more efficient when you do this, since the temp table will be much smaller, but I am only guessing at this point. If you need to support a massive initial data load, further time savings are to be had by doing COPY instead of 126,000 inserts. Please do keep us updated. Thanking all the gods and/or developers for spamassassin, -- Karim Nassar