X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 73E979FB1D3 for ; Tue, 19 Sep 2006 06:00:57 -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 27977-06 for ; Tue, 19 Sep 2006 06:00:42 -0300 (ADT) X-Greylist: delayed 00:28:48.475875 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id E026C9FB25D for ; Tue, 19 Sep 2006 06:00:28 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from mailhost.bostream.com (mailhost.bostream.com [81.26.227.69]) by svr4.postgresql.org (Postfix) with ESMTP id CBCEF5AF02A for ; Tue, 19 Sep 2006 08:31:38 +0000 (GMT) Received: from bonetmail.com (mailhost.bostream.com [81.26.227.69]) by mailhost.bostream.com (8.12.4/8.12.1) with SMTP id k8J8VONO083363; Tue, 19 Sep 2006 10:31:26 +0200 (MEST) From: "per-olov.esgard" To: pgsql-odbc@postgresql.org Subject: Performance issue with odbc? X-Mailer: "webmail.bostream.com" Date: Tue, 19 Sep 2006 09:31:24 +0100 Message-id: <450faadc.14599.16838@bonetmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.135 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200609/75 X-Sequence-Number: 8226 Hi there! I have a performance problem, but I don't know if it's an odbc driver problem or a problem with the actual database. I am performing many inserts by calling a stored procedure written in PL/pgSQL. I am using a stored procedure since the insert operation deals with multiple tables. What I have tried to do to speed up the inserts are two things: 1 I have disabled autocommit in the driver and tried to commit chunks between 1 .. 1000 inserts. 2 I have introduced an insert buffer in the odbc client, thus limiting the number is SQLExecute's to (total inserts)/(buffer size) The problem is that neither disabling autocommit nor using an insert buffer gives me the performance boost I have experienced with other relational databases. Actually disabling autocommit gives me poorer performance than using autocommit. Using the insert buffer gives me a little better performance (very little). Any idea, anyone? Regards Per-Olov Esgard