pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Vilches, Alejandro <alejandro.vilches@intel.com>
To: 'pgsql-odbc@postgresql.org' <pgsql-odbc@postgresql.org>
Subject: Re: odbc vs. libpq performance
Date: Thu, 16 Apr 2015 10:14:54 +0300
Message-ID: <552F616E.3080508@iki.fi> (raw)
In-Reply-To: <9CE034E149417949A58AA9A4FA7E1C5584A6A129@ORSMSX109.amr.corp.intel.com>
References: <9CE034E149417949A58AA9A4FA7E1C5584A610A3@ORSMSX109.amr.corp.intel.com>
	<9CE034E149417949A58AA9A4FA7E1C5584A6A129@ORSMSX109.amr.corp.intel.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

On 04/16/2015 03:30 AM, Vilches, Alejandro wrote:
> I have a simple program that inserts data into a single table (see details below).  When I have the program connect to the DB via ODBC, performance is significantly slower compared to when I have it connect via libpq.  I was able to achieve ~1000 transactions per second using libpq, but only ~4 transactions per second using the ODBC driver.

I'd suggest setting log_min_duration_statement = 0 in the server's 
config file. Then repeat the test and look at the log file to see where 
the time is spent. If that gives no clue, I'm happy to take a look, if 
you can reproduce it with a small test program and post it to a list.

- Heikki



-- 
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc



view thread (7+ messages)  latest in thread

Message-ID: <552F616E.3080508@iki.fi>
Permalink:  ../552F616E.3080508@iki.fi/
Also on:    postgresql.org/message-id/552F616E.3080508@iki.fi

 · 

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: hlinnaka@iki.fi, alejandro.vilches@intel.com
  Subject: Re: odbc vs. libpq performance
  In-Reply-To: <552F616E.3080508@iki.fi>
  References: <9CE034E149417949A58AA9A4FA7E1C5584A610A3@ORSMSX109.amr.corp.intel.com> <9CE034E149417949A58AA9A4FA7E1C5584A6A129@ORSMSX109.amr.corp.intel.com> <552F616E.3080508@iki.fi>

* 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