Caching (In-Memory)

In Foresight Analytics Platform data caching and repository object caching are implemented to speed up work.

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:

To cache objects of various types, the various mechanisms speeding up access to objects and their work are developed. Description of object caching principles is given below.

In-Memory Data 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.

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 Foresight Budgeting are also taken into account

The In-Memory mechanism architecture looks as follows:

In the desktop application, the cache management of separate objects is performed on the Cache tab of the Object Properties dialog box. BI server will apply data caching for objects which cache was enabled in the desktop application.

By default cache is created in the following forlders:

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

The caching mechanism settings are changed in the Settings.xml file or in registry. Settings are determined on client workstations if the desktop application is used, or at BI server.

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 of the Object Properties dialog box. It is also possible to set up scheduled cache update on each user's computer using task scheduler.

Constraints and Features of Working

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

Factors of In-Memory Cache Effectiveness Decrease

The list given below presents factors that can speed down work with cached data. In some cases, speeding down can be considerable:

Caching Repository Objects

Caching of dictionaries and dimensions in time series databases

Caching of development environment objects

Caching regular reports

Caching maps

Image caching of object preview

Caching In Web Application

On Foresight Analytics Platform working, extraction and storage of data required for web application running is made in the BI server memory. The system can be also expanded by introducing additional (more performing) BI servers with function of data extracting and caching from repository base. BI server with web application will request those BI servers and get the flow with required data without additional request of DBMS.

In the registry or in the settings.xml it is required to fill in the Service section. This section contains addresses of removed BI servers and repository settings for which the specified data caching scheme is applied.

NOTE. The specified caching mode is relevant only for the subjects for which caching is enabled in repository.

Cache Clearing

Cache clearing allows avoiding the use of potentially outdated data.

NOTE. Cache clearing is available only in the desktop application.

To clear dictionary and time series database cache, select the Clear Cache item in the Tools menu in the object navigator.

To clear development environment object cache, select the Repository > Clear Assembly Cache item of security manager.

To clear regular report cache, click the Clear button in the Object Cache.

To clear data cache of different objects, click the Clear Cache item on the Cache tab of the Object properties window.

To clear repository cache, select the Clear Cache item in the Tools main menu of the object navigator.

See also:

Navigator Interface | Settings of Caching