In-Memory Data Caching

To cache data in Foresight Analytics Platform, In-Memory is applied. In-Memory is a subsystem that enables data loading from sources (cube caching), data local storage, quick multiuser access and high performance. Caching enables to avoid sending request each time the data sample from DBMS is required. The following repository objects support In-Memory caching:

IMPORTANT. If repository objects caching is used for dictionaries, repository objects caching settings are not taken into account when In-Memory data caching is used. The In-Memory data caching has a higher priority than repository objects caching.

Data is stored in file cache. Cache stores values from definite point and coordinates identifying point binding to data source. Files containing the data currently in use are mapped to computer memory. Memory paging mechanism provides a possibility to work in limited RAM with almost unlimited size of data stored in files. In case of out-of-memory state, data loading/downloading is page-by-page.

On caching dictionaries, attribute values corresponding to dictionary elements are saved to the file cache. It is taken into account whether dictionary has parameters (the cache is created for each set of parameters), elements have validity period (MDM dictionaries), various users have access permissions to elements.

When the In-Memory mechanism is used, a special structure with source data is loaded to RAM memory. Further data processing (creating data slice, filtering, aggregation, sorting, and so on) is executed in the RAM memory, without addressing data source. Thus, the platform response time is reduced and user work interactivity increases. Cache provides incremental data processing where if some cells are modified, then only related with those cells data is recalculated and not the whole source. On working user access permissions to data are taken into account. Data segments that are set up on creating a role model for business process modeling and for Foresight Budgeting.

The In-Memory mechanism architecture looks as follows:

Architecture of In-Memory includes:

To use the In-Memory data caching:

  1. Fill in the InMem section:

NOTE. The InMem section must be filled in on all client computers if the desktop application is used, or on BI server if the web application is used.

  1. Select the repository object in the object navigator.

  2. Enable object caching by selecting the Cacheable Object checkbox:

NOTE. In the web application caching can be enabled on for cubes and time series databases.

After executing the operations, the In-Memory caching of the selected repository object is used. BI server applies dictionaries data caching which cache was enabled in the desktop application. When an object is worked with in the desktop and web applications, common cache is used if cache location paths specified in client computer and BI server settings match. The path to the folder with stored cache files is set on BI server or on all users' client computers using the DataDir parameter in   system registry settings and in the Settings.xml file. By default, cache is created in the following folders:

NOTE. Users that will work with cache must have read and write permissions to specified folders.

After data is changed and saved, updated data will be in the cache of the computer used for work. To update cache on computers of other users of the Foresight Analytics Platform desktop application, click the Update Cache button on the Cache tab in the object properties. To update cache of cubes and time series databases in the web application, select the Update Cache in the object context menu. On updating, cache is cleared and recreated.

Constraints and Features of Working

The current implementation has the following constraints and features when working with data caching:

See also:

Caching