Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 40380632CCC for ; Tue, 16 Feb 2010 10:39:13 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 98586-03 for ; Tue, 16 Feb 2010 14:38:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from serveurmail01.codata.be (113.123.146.82.ipv4.evonet.be [82.146.123.113]) by mail.postgresql.org (Postfix) with ESMTP id 91F2D63267F for ; Tue, 16 Feb 2010 10:39:02 -0400 (AST) Received: from localhost (localhost.localdomain [127.0.0.1]) by serveurmail01.codata.be (Postfix) with ESMTP id 35FAC1F3823C for ; Tue, 16 Feb 2010 15:39:00 +0100 (CET) X-Virus-Scanned: amavisd-new at Received: from serveurmail01.codata.be ([127.0.0.1]) by localhost (serveurmail01.codata.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CSWeU1NDoMyA for ; Tue, 16 Feb 2010 15:38:54 +0100 (CET) Received: from [127.0.0.1] (38-179-112-217.fix.adsl.belcenter.be [217.112.179.38]) by serveurmail01.codata.be (Postfix) with ESMTP id 490521F38232 for ; Tue, 16 Feb 2010 15:38:54 +0100 (CET) Message-ID: <4B7AADFD.5000905@codata.eu> Date: Tue, 16 Feb 2010 15:38:53 +0100 From: Arnaud Lesauvage User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1 MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Re: How to speedup inserts via ADO ? References: <4B753720.9060901@codata.eu> <4B7A17C0.5080309@tpf.co.jp> <4B7A68B6.2040302@codata.eu> In-Reply-To: <4B7A68B6.2040302@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.766 tagged_above=-10 required=5 tests=AWL=-0.867, BAYES_50=0.001, RDNS_DYNAMIC=0.1 X-Spam-Level: X-Archive-Number: 201002/14 X-Sequence-Number: 10201 OK, there was some confusion in my timings. The problem is not when inserting directly via ADO. This works fine, and I have response times roughly equivalent to direct psql queries (10.000 inserts in ~7.5s in ODBC and ~7.0s in pgAdmin). The problem is with linked tables. No matter what connection string I use to link them (I use protocol=7.4-1) and whether I use a transaction or not, it takes approximatively 20 times more time. In the previous example, inserting 10.000 rows in the linked table takes ~150s ! I have a mylog output, but it is quite huge. Are there any known tweaks to make inserts on linked ODBC tables faster? Thanks a lot ! Regards -- Arnaud Lesauvage