Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 4259B6338E5 for ; Fri, 12 Feb 2010 18:47:29 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 36582-04 for ; Fri, 12 Feb 2010 22:47:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by mail.postgresql.org (Postfix) with SMTP id 2EAA9632CD6 for ; Fri, 12 Feb 2010 18:47:17 -0400 (AST) Received: (qmail 27707 invoked by uid 512); 12 Feb 2010 22:47:14 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 12 Feb 2010 22:47:14 -0000 Received: from unknown (HELO ?192.168.24.52?) (122.249.213.164) by sd.tpf.co.jp with SMTP; 12 Feb 2010 22:47:14 -0000 Message-ID: <4B75DA6A.80603@tpf.co.jp> Date: Sat, 13 Feb 2010 07:47:06 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; ja; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: Arnaud Lesauvage CC: pgsql-odbc@postgresql.org Subject: Re: How to speedup inserts via ADO ? References: <4B753720.9060901@codata.eu> In-Reply-To: <4B753720.9060901@codata.eu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=-10 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 201002/6 X-Sequence-Number: 10193 Arnaud Lesauvage wrote: > Hi all ! > > Inserts via ODBC are a lot slower than via native psql connection. > For instance, I have a very basic insert statement that inserts one row > in a table. > If I execute it 1000 times in pgAdmin, it returns in 718ms. > If I execute it via ADO (with a direct query : Connection.Execute > "INSERT INTO..."), it takes 15s to complete. > > I checked psqlODBC's commlog, but all I see in it are the INSERT > statements that I issued. So there must be a lot of overhead somewhere, > but I don't understand where it comes from, and more important I don't > understand how I could get rid of it. Could you send me directly the Mylog output? regards, Hiroshi Inoue