Page 1 of 1

TOraQuery and TClientDataSet

Posted: Wed 24 May 2006 16:11
by Milan Bacik
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.

Posted: Thu 25 May 2006 08:55
by Challenger
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.