pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: noreply@pgfoundry.org
To: noreply@pgfoundry.org
Subject: [ psqlodbc-Bugs-1000625 ] Serious performance issue with Delphi
Date: Wed,  3 May 2006 12:37:13 +0000 (UTC)
Message-ID: <20060503123713.8521986C5C9@pgfoundry.org> (raw)

Bugs item #1000625, was opened at 2006-05-03 09:01
You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000625&group_id=1000125

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: Serious performance issue with Delphi

Initial Comment:
Greetings,
I'm using PostgreSQL 8.1 on Windows XP with the included ODBC driver (8.01.02.00 according to Control Panel) in Delphi 6 or 2006, ADO components, MS OLE DB Provider for ODBC Drivers.

I create an ADOQuery with a SELECT statement, and when issuing Open, it takes very long time to return (several seconds, even if the SELECT is a very simple one fetching a couple of fields of a single record, for example). Enabling log output to mylog I see that, for some reason, a WHERE-less SELECT * is performed right after my select, also inside the same Open. My table contains binary data (pictures), hence the long latency. The result of the SELECT * is apparently discarded, and the correct data from my select is returned by TADOQuery.Open.

I can't understand who is performing the SELECT * and why, but it seems it only happens in Delphi. In the PostgreSQL IRC channel I've been suggested to try the QTADO query tool, and it runs smooth instead, with the very same setup. The same database served by MySQL does not show the problem using the MySQL ODBC driver, though. Perhaps some incompatibility between the Postgres ODBC driver and the Delphi database library?

Thanks,
   Salvo
   salvois at users.sourceforge.net

----------------------------------------------------------------------

>Comment By: Ludek Finstrle (luf)
Date: 2006-05-03 14:37

Message:
Delphi sends the WHERE less command. The problem is that the Delphi doesn't get the right column information. The solution is in turning on the option Parse Statement in ODBC Datasource (or changing the connection string).

Regards,

Luf

----------------------------------------------------------------------

You can respond by visiting: 
http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000625&group_id=1000125



view thread (3+ messages)  latest in thread

Message-ID: <20060503123713.8521986C5C9@pgfoundry.org>
Permalink:  ../20060503123713.8521986C5C9@pgfoundry.org/
Also on:    postgresql.org/message-id/20060503123713.8521986C5C9@pgfoundry.org

 · 

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: noreply@pgfoundry.org
  Subject: Re: [ psqlodbc-Bugs-1000625 ] Serious performance issue with Delphi
  In-Reply-To: <20060503123713.8521986C5C9@pgfoundry.org>
  References: <20060503123713.8521986C5C9@pgfoundry.org>

* 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