RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataStore.GetMemoryUsage Method

Returns the number of bytes of memory used to cache the multidimensional array of summaries along all active dimensions.

Pascal
function GetMemoryUsage: Integer;
C++
__fastcall int GetMemoryUsage();

Call GetMemoryUsage to determine the size of the cache that stores the crosstabulated information for the data store. If the returned value is too large, consider making some of the active dimensions paged by setting their BinType property to binSet or allowing the data store to swap some dimensions out by setting their ActiveFlag property to diAsNeeded. The cube dimension can be accessed using the DimensionMap property. 

The storage needs of the crosstabulated data store increase geometrically with each active dimension that is added. Applications must find the best balance between the performance benefit of caching many dimensions so that they are immediately available to decision controls, and the need to keep the number of active dimensions small enough so that the cache does not consume inordinate amounts of memory. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!