From: Benjamin Krajmalnik <kraj@illumen.com>
To: pgsql-odbc@postgresql.org
Subject: Re: psqlodbc-8.2.200
Date: Tue, 5 Dec 2006 09:38:40 -0700
Message-ID: <F4E6A2751A2823418A21D4A160B68988029D7F@fletch.stackdump.local> (raw)
Running latest release of PostgreSQL ODBC Driver (8.02.0200).
Does the ODBC driver for Windows use connection pooling?
I have a Windows application which is using the driver.
I have connection pooling enabled, and the application notifies the
driver to use connection pooling (per the developer).
I saw a huge disparity when running the queries (a stored procedure
call) via psql locally and via the odbc driver (in this case, I am
referring to the statement duration as logged by postgresql). The call
being made is a "select * from sp_name(parameters)".
I have about an 8:1 performance degradation in the statement duration
when called via ODBC compared to directly in psql (as reported by the
postgres log file).
I have not tried running the query through pgAdmin to see what execution
speed I get.
However, when I turned connection loggin on, I noticed that every single
call to the stored procedure is creating a new connection (so it appears
it is not honoring the connection pooling, which I believe results in
quite a bit of overhead for each statement being called).
TIA,
Benjamin
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: kraj@illumen.com
Subject: Re: psqlodbc-8.2.200
In-Reply-To: <F4E6A2751A2823418A21D4A160B68988029D7F@fletch.stackdump.local>
References: <F4E6A2751A2823418A21D4A160B68988029D7F@fletch.stackdump.local>
* 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