Applies To
TQDB, TQDBItem, TQDBView
Declaration
procedure CacheStatistics(var MaxSize, CurSize, CurLen, HitRatio, DropRatio : longint);
Description
Gives performance information on the item-cache.
MaxSize the upper limit on cache memory (bytes)
CurSize the current size of the cache (bytes)
CurLen the current number of items in the cache
HitRatio the percentage of accesses that the cache can service
DropRatio the percentage of accesses that force items out of the cache
You do need to check that the item-cache actually helps performance rather than hindering it! The cache imposes a small overhead, especially when old items have to be forced out of the cache to make way for new ones. If your hard disk is fast, or your system's disk-cacheing is efficient, the overhead might actually outweigh any performance benefits.