X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id AFF9D5282A for ; Sat, 4 Jun 2005 23:28:01 -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 11397-05 for ; Sun, 5 Jun 2005 02:28:00 +0000 (GMT) Received: from stark.xeocode.com (stark.xeocode.com [216.58.44.227]) by svr1.postgresql.org (Postfix) with ESMTP id 3AF2852817 for ; Sat, 4 Jun 2005 23:27:59 -0300 (ADT) Received: from localhost ([127.0.0.1] helo=stark.xeocode.com) by stark.xeocode.com with smtp (Exim 3.36 #1 (Debian)) id 1Dekrk-0005Em-00; Sat, 04 Jun 2005 22:27:56 -0400 To: Tom Lane Cc: pgsql-interfaces@postgresql.org Subject: Re: DBD::Pg performance bites compared to DBD::mysql? References: <1015.1117775836@sss.pgh.pa.us> In-Reply-To: <1015.1117775836@sss.pgh.pa.us> From: Greg Stark Organization: The Emacs Conspiracy; member since 1992 Date: 04 Jun 2005 22:27:55 -0400 Message-ID: <87ekbhk05w.fsf@stark.xeocode.com> Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 200506/23 X-Sequence-Number: 5591 Tom Lane writes: > I'm not any kind of Perl module guru, but it looks to me like the > explanation for the discrepancy is that much of DBD::mysql is written > in C while the equivalent code in DBD::Pg is written in Perl. This is > killing us for any app written in Perl :-( --- the above trace only > shows a factor of 2 total penalty, but I've seen up to a factor of 4 in > other cases. There is no way that a client-side driver should be taking > several times longer than the backend to process a SQL command :-( What version of DBD::Pg did you test with? Development was pretty moribund for a while but has picked up recently, just in time for 8.0 and the new binary prepared query support. Incidentally, the DBD::Pg mailing list is dbdpg-general@gborg.postgresql.org -- greg