Re: Slow query through ODBC

From: Arnaud Lesauvage <thewild(at)free(dot)fr>
To: Dave Page <dpage(at)vale-housing(dot)co(dot)uk>
Cc: Ludek Finstrle <luf(at)pzkagis(dot)cz>, pgsql-odbc(at)postgresql(dot)org
Subject: Re: Slow query through ODBC
Date: 2006-01-25 12:28:19
Message-ID: 43D76EE3.7060108@free.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Dave Page a écrit :
>> From: Ludek Finstrle [mailto:luf(at)pzkagis(dot)cz]
>> It seems to me I have to kick Dave to take a look at this :-)
>> Dave is pgAdmin developer so he could give a light on the problem.
>>
>> Dave: Could you take a look at this problem?
>
> Arnaud,
>
> When you are testing, please make sure that the psqlODBC's mylog and
> commlog are switched off, and that SQL Tracing is turned off in the ODBC
> control panel applet.
>
> Also, please note that pgAdmin has very lightweight data access classes
> written over libpq - much more lightweight than the ODBC driver. Most of
> the overhead in pgAdmin comes from rendering the data in the grid
> control.
>
> Regards, Dave.

Dave,

All logging is off when I run tests. I only turned them on on
Ludek's request for debugging purposes. Tracing is always off in
the ODBC pannel.

What looks strange to me is that while the query is running
(during the "open" method of the recordset), processor usage is 0%
on the server and the workstation. Network usage is very low :
~50kB on a 100Mbps connection, during the entire query.

In pgAdmin, the query is immediate and there is just a pike in the
network traffic when the data is received. That's what I was
expecting to see through psqlODBC also...

Regards
--
Arnaud

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Tom Lane 2006-01-25 16:52:13 SQLGetInfo buffer overflow?
Previous Message Dave Page 2006-01-25 12:16:20 Re: Slow query through ODBC