pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Arnaud Lesauvage <arnaud.listes@codata.eu>
To: pgsql-odbc@postgresql.org
Subject: How to speedup inserts via ADO ?
Date: Fri, 12 Feb 2010 12:10:24 +0100
Message-ID: <4B753720.9060901@codata.eu> (raw)

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.

Are there some connection parameters that I could use to speed things up ?

Thanks a lot for helping !

--
Arnaud Lesauvage



view thread (8+ messages)  latest in thread

Message-ID: <4B753720.9060901@codata.eu>
Permalink:  ../4B753720.9060901@codata.eu/
Also on:    postgresql.org/message-id/4B753720.9060901@codata.eu

 · 

reply

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: <4B753720.9060901@codata.eu>
  References: <4B753720.9060901@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