SQL fast in PSQL, very slow using MS.NET driver

From: "Ashish Sharma" <ashish(at)coredbsystems(dot)com>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: SQL fast in PSQL, very slow using MS.NET driver
Date: 2008-04-09 13:03:24
Message-ID: 002f01c89a42$1a117590$4e3460b0$@com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

The setup in question includes PostGRESQL v8.2.4, Java based web servers and
MS.NET based web servers. Following is the fuzzy situation:

1. Our SQL queries run very fast using PSQL (both, from the server as
well as the client).

2. The Java app also retrieves the results very fast (of course, we
are using Postgres JDBC driver).

3. But, the same SQL queries perform pathetically slow when called
from .NET application. The driver being used is NPGSQL.

I have tried making some alterations to TCP related system variables like
TCP_NoDelay and TCPAckFrequency on Windows, but to no profit. Same setup is
already running on Oracle backend, and, there is no difference in SQL
response timings from either application.

Please advice, as this has become a major hurdle for us to push PostGRESQL
to be productionized, in place of currently running Oracle DB.

Regards,

Ashish Sharma

Core Database Systems

HYPERLINK "http://www.coredbsystems.com"http://www.coredbsystems.com

Internal Virus Database is out-of-date.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.5/1356 - Release Date: 4/2/2008
4:14 PM

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Meskes 2008-04-09 13:09:58 Re: [PATCHES] libpq type system 0.9a
Previous Message Hannu Krosing 2008-04-09 12:49:58 Re: Free Space Map data structure