From: Arnaud Lesauvage <arnaud.listes@codata.eu>
To: pgsql-odbc@postgresql.org
Subject: Re: How to speedup inserts via ADO ?
Date: Tue, 16 Feb 2010 15:38:53 +0100
Message-ID: <4B7AADFD.5000905@codata.eu> (raw)
In-Reply-To: <4B7A68B6.2040302@codata.eu>
References: <4B753720.9060901@codata.eu>
<4B7A17C0.5080309@tpf.co.jp>
<4B7A68B6.2040302@codata.eu>
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
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: arnaud.listes@codata.eu
Subject: Re: How to speedup inserts via ADO ?
In-Reply-To: <4B7AADFD.5000905@codata.eu>
References: <4B753720.9060901@codata.eu> <4B7A17C0.5080309@tpf.co.jp> <4B7A68B6.2040302@codata.eu> <4B7AADFD.5000905@codata.eu>
* 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