SmartQuery performance in grid editing

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jdorlon
Posts: 202
Joined: Fri 05 Jan 2007 22:07

SmartQuery performance in grid editing

Post by jdorlon » Tue 06 Jan 2009 19:55

Hello,

I am using the latest version of ODAC with Delphi 2009.

When I attach a smartquery to a grid and try to edit data, I'm seeing slow performance because this query is firing over and over:

begin
:result := sys.dbms_transaction.local_transaction_id;
end;

It is coming from TOCITransaction.LocalTransactionId.

I understand that this pl/sql block is used to determine if a transaction is in progress, but why does ODAC have to execute it? Is there an option I can use to disable this feature?

Thank you.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Thu 08 Jan 2009 09:38

You can set the LockMode property of TSmartQuery to lmNone to disable this feature.

Post Reply