From: per-olov.esgard <per-olov.esgard@bonetmail.com>
To: pgsql-odbc@postgresql.org
Subject: Performance issue with odbc?
Date: Tue, 19 Sep 2006 09:31:24 +0100
Message-ID: <450faadc.14599.16838@bonetmail.com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: per-olov.esgard@bonetmail.com
Subject: Re: Performance issue with odbc?
In-Reply-To: <450faadc.14599.16838@bonetmail.com>
References: <450faadc.14599.16838@bonetmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox