pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josef Bicik <jbicik@gmail.com>
To: pgsql-odbc@postgresql.org
Subject: ODBC Driver performance
Date: Wed, 31 Mar 2010 15:35:50 +0100
Message-ID: <4BB35DC6.5050209@gmail.com> (raw)

Hi,

I wrote a C# (.NET v2) single-threaded console application in Microsoft 
Visual Studio 2008, which uses the PostgreSQL ANSI 8.03.04.00 ODBC 
driver to connect to PostgreSQL database running on a standalone server. 
The application retrieves raw data from the database, performs analysis 
and stores results to the database. Multiple instances of the 
application can be created at a time and run simultaneously. When 
multiple instances of the application are created on a multi-core 
machine the performance of the application is much slower than when the 
processes are executed on different nodes (e.g., 3 processes on 1 
quad-core machine run approx. 25% slower than 3 processes on 3 quad-core 
machines). In case of 4 processes the difference is almost 50%. The CPU 
load when 3 processes are running on 1 quad-core machine was approx. 75% 
(which was as expected).

Each process uses following ODBC connection string:
Driver={PostgreSQL ANSI};Server=x;Port=5432;Database=x;Uid=x;Pwd=x;"

I did not used any profiler but it seems that the overhead when multiple 
processes are running on 1 machine is in incorrect configuration of the 
ODBC driver or the driver itself. Any ideas what might be causing the 
slowdown? Thanks for your help.

Best regards, Josef



Message-ID: <4BB35DC6.5050209@gmail.com>
Permalink:  ../4BB35DC6.5050209@gmail.com/
Also on:    postgresql.org/message-id/4BB35DC6.5050209@gmail.com

 · 

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: jbicik@gmail.com
  Subject: Re: ODBC Driver performance
  In-Reply-To: <4BB35DC6.5050209@gmail.com>
  References: <4BB35DC6.5050209@gmail.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