TOraQuery and TClientDataSet

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Milan Bacik
Posts: 28
Joined: Fri 28 Apr 2006 08:59
Location: Czech Republic
Contact:

TOraQuery and TClientDataSet

Post by Milan Bacik » Wed 24 May 2006 16:11

I am using TCientDataSet to cache some data on client. It is filled from TOraQuery using TDataSetProvider. What are best setings of TOraQuery in this case ?
I set readonly = true
FetchAll = true because i want all records to be cached TClientDataSet.
If i try set UniDirectional = true FetchAll was reset to false.

Challenger
Devart Team
Posts: 925
Joined: Thu 17 Nov 2005 10:53

Post by Challenger » Thu 25 May 2006 08:55

The best way is to set UniDirectional property to True. In that case TOraQuery component does not place fetched records in the internal buffer. So FetchAll and FetchRows properties are not used with UniDirectional. When UniDirectional is True, an application requires less memory and performance is improved.

Post Reply