pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Performance-problem
3+ messages / 3 participants
[nested] [flat]

* Performance-problem
@ 2004-03-24 09:59  Maximilian Führer <m.fuehrer@hm-software.de>
  0 siblings, 0 replies; 3+ messages in thread

From: Maximilian Führer @ 2004-03-24 09:59 UTC (permalink / raw)
  To: pgsql-odbc

Hallo,
if have a problem with the performance of the ODBC-driver.
i need i 10x faster.

ODBC driver version :psqlodbc-07_03_0200
PostgreSQL database version : 7.3

yours faithfully,
Maximilian Führer

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Performance-problem
@ 2004-03-26 21:01  Steve Jorgensen <jorgens@coho.net>
  0 siblings, 1 reply; 3+ messages in thread

From: Steve Jorgensen @ 2004-03-26 21:01 UTC (permalink / raw)
  To: pgsql-odbc

Are you sure the ODBC driver is the culprit in the problem you are having? 
 Could it be the speed of the query, or the speed of the network over which 
you are connecting, perhaps?  It would help if you describe your issue in 
more detail.

On Wednesday, March 24, 2004 1:59 AM, Maximilian Fuhrer 
[SMTP:m.fuehrer@hm-software.de] wrote:
> Hallo,
> if have a problem with the performance of the ODBC-driver.
> i need i 10x faster.
>
> ODBC driver version :psqlodbc-07_03_0200
> PostgreSQL database version : 7.3
>
> yours faithfully,
> Maximilian Fuhrer
>  << File: ATT00288.html >> 



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Performance-problem
@ 2004-03-27 07:49  Shachar Shemesh <psql@shemesh.biz>
  parent: Steve Jorgensen <jorgens@coho.net>
  0 siblings, 0 replies; 3+ messages in thread

From: Shachar Shemesh @ 2004-03-27 07:49 UTC (permalink / raw)
  To: jorgens@coho.net <jorgens@coho.net>; +Cc: pgsql-odbc

I've had the exact same issue. I also debugged it until I found out 
exactly what the problem was. I didn't have the time to sit down and fix 
it, though.

When you open a non-readonly cursor, the ODBC performs a select that has 
the oid and ctid fields added in. This is done to bypass the fact that 
postgresql has no updateable cursors support.

When you try to actually get the information from the query, each line 
you ask for is another select! The performance hit I get compared to the 
same query running over SQL Server is 1:10 (sounds familiar?).

The solution:
If you can afford it - make the query readonly. This will make the ODBC 
use a regular cursor, and the problem is gone.
If you cannot afford it - the driver will need to be fixed.

What I thought for a fix - add the oid and ctid as before, but make that 
a readonly cursor. If and when an update request arrives, do the proper 
select as usual.

             Shachar

Steve Jorgensen wrote:

>Are you sure the ODBC driver is the culprit in the problem you are having? 
> Could it be the speed of the query, or the speed of the network over which 
>you are connecting, perhaps?  It would help if you describe your issue in 
>more detail.
>
>On Wednesday, March 24, 2004 1:59 AM, Maximilian Fuhrer 
>[SMTP:m.fuehrer@hm-software.de] wrote:
>  
>
>>Hallo,
>>if have a problem with the performance of the ODBC-driver.
>>i need i 10x faster.
>>
>>ODBC driver version :psqlodbc-07_03_0200
>>PostgreSQL database version : 7.3
>>
>>yours faithfully,
>>Maximilian Fuhrer
>> << File: ATT00288.html >> 
>>    
>>


-- 
Shachar Shemesh
Lingnu Open Systems Consulting
http://www.lingnu.com/




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2004-03-27 07:49 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-03-24 09:59 Performance-problem Maximilian Führer <m.fuehrer@hm-software.de>
2004-03-26 21:01 Re: Performance-problem Steve Jorgensen <jorgens@coho.net>
2004-03-27 07:49 ` Shachar Shemesh <psql@shemesh.biz>

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