Question on caching objects

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
MarkF
Posts: 211
Joined: Thu 02 Mar 2006 14:55

Question on caching objects

Post by MarkF » Tue 08 Jul 2008 01:59

Hi Folks!

I'm wondering if it is possible to cache a text representation of an object in the dataset itself. I've been looking into an external cache, but it would certainly be nice to be able to put this into the dataset to make things more efficient and to get around issues with sorting and or filtering. Any ideas?

Thanks for any help or suggestions.

-Mark

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

Post by Plash » Tue 08 Jul 2008 07:43

You can create calculated fields in the dataset to store text representation of objects. You can use sorting and filtering on calculated fields. Set the CacheCalcFields option of TOraDataSet to True to make this operations more efficient.

MarkF
Posts: 211
Joined: Thu 02 Mar 2006 14:55

Post by MarkF » Tue 08 Jul 2008 13:11

Thanks! I'll check that out.

-Mark

Post Reply