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 0E6BC3A61F2 for ; Fri, 28 Jan 2005 06:29:08 +0000 (GMT) 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 07933-04 for ; Fri, 28 Jan 2005 06:29:04 +0000 (GMT) Received: from window.monsterlabs.com (window.monsterlabs.com [216.183.105.176]) by svr1.postgresql.org (Postfix) with SMTP id 33BD03A61D5 for ; Fri, 28 Jan 2005 06:29:03 +0000 (GMT) Received: (qmail 933 invoked from network); 28 Jan 2005 06:29:03 -0000 Received: from host-209.149.56.238.nashville.net (HELO ?10.0.1.2?) (209.149.56.238) by 0 with SMTP; 28 Jan 2005 06:29:03 -0000 In-Reply-To: <200501272141.49531.josh@agliodbs.com> References: <200501272141.49531.josh@agliodbs.com> Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <0f81625232fe6b2256328804be50c7ae@sitening.com> Content-Transfer-Encoding: 7bit Cc: PgSQL - Performance From: Thomas F.O'Connell Subject: Re: Triggers During COPY Date: Fri, 28 Jan 2005 00:28:58 -0600 To: josh@agliodbs.com X-Mailer: Apple Mail (2.619.2) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200501/566 X-Sequence-Number: 10256 I forgot to mention that I'm running 7.4.6. The README includes the caveat that pgmemcache is designed for use with 8.0. My instinct is to be hesitant using something like that in a production environment without some confidence that people have done so with good and reliable success or without more extensive testing than I'm likely to have time for primarily because support for 7.4.x is never likely to increase. Thanks for the tip, though. For the time being, it sounds like I'll probably try to implement the drop/create trigger setup during import. -tfo -- Thomas F. O'Connell Co-Founder, Information Architect Sitening, LLC http://www.sitening.com/ 110 30th Avenue North, Suite 6 Nashville, TN 37203-6320 615-260-0005 On Jan 27, 2005, at 11:41 PM, Josh Berkus wrote: > Thomas, > >> Would it be absurd to drop the triggers during import and recreate >> them >> afterward and update the counts in a summ> ary update based on >> information from the import process? > > That's what I'd do. > > Also, might I suggest storing the counts in memcached (see the > pgmemached > project on pgFoundry) rather than in a table? > > -- > --Josh > > Josh Berkus > Aglio Database Solutions > San Francisco