Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 1B2AE9FA5CE for ; Thu, 28 Sep 2006 17:56:04 -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 44963-05 for ; Thu, 28 Sep 2006 17:55:59 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.188]) by postgresql.org (Postfix) with ESMTP id 0DF649FB366 for ; Thu, 28 Sep 2006 17:55:58 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id p77so921316nfc for ; Thu, 28 Sep 2006 13:55:57 -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=P0G31u0yObRp8B7qZHsBTn1ygMHEN0AFzGE1YoMeDurt8JtpE8yW8q7pgFHoemvOBr7iaan0j6nGzf5tHQx1InNnysBzt0q27k+L8qs8mqDsLJC434UWpXb7WcSdGeHeD4ULZGglZHA+AvXOytBzuNykqiXXQRQ2Efkg7Nj9J5c= Received: by 10.78.200.3 with SMTP id x3mr1889857huf; Thu, 28 Sep 2006 13:55:57 -0700 (PDT) Received: by 10.78.45.3 with HTTP; Thu, 28 Sep 2006 13:55:57 -0700 (PDT) Message-ID: Date: Thu, 28 Sep 2006 16:55:57 -0400 From: "Merlin Moncure" To: "Carlo Stonebanks" Subject: Re: Performace Optimization for Dummies Cc: pgsql-performance@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060928184538.GV34238@nasby.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.263 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, SPF_PASS X-Spam-Level: X-Archive-Number: 200609/406 X-Sequence-Number: 21092 On 9/28/06, Carlo Stonebanks wrote: > The deduplication process requires so many programmed procedures that it > runs on the client. Most of the de-dupe lookups are not "straight" lookups, > but calculated ones emplying fuzzy logic. This is because we cannot dictate > the format of our input data and must deduplicate with what we get. > > This was one of the reasons why I went with PostgreSQL in the first place, > because of the server-side programming options. However, I saw incredible > performance hits when running processes on the server and I partially > abandoned the idea (some custom-buiilt name-comparison functions still run > on the server). imo, the key to high performance big data movements in postgresql is mastering sql and pl/pgsql, especially the latter. once you get good at it, your net time of copy+plpgsql is going to be less than insert+tcl. merlin