To speed up access to objects and their work, use repository objects caching.
On Foresight Analytics Platform BI server work, extraction and storage of data required for web application work is made in BI server memory.
The system can be expanded by connecting additional (more powerful) servers with used for data extraction and caching from repository. BI server will request these BI servers and get the thread with required data without additional request to DBMS. To connect additional BI servers, fill in the Service section in the settings.xml file or in system registry settings.
Caching is available for some of the repository object types:
Caching is also available for documents but with some features of use:
Document cache is created on document opening. By default, cache is located in the user profile, in the subdirectory %USERPROFILE%\AppData\Local\Foresight\Foresight Analytics Platform\AsmCache<number>\Mod\<repository ID>\<build number>\CachedFiles\Documents.
Document cache is cleared on document deletion.
Development environment object caching
To use actual data, clear cache if required.
Cache clearing helps avoiding the use of potentially outdated data. Depending on the operating system in use, there are different cache clearing options.
To clear development environment object cache, run the script to delete files in the subfolder opt/foresight/fp10.x-biserver/var/cache/AsmCache<number>/Mod/<repository ID> of the required repository. Cache is cleared by the BI server administrator.
To clear development environment object cache:
Copy the CacheClearing.zip archive with the check_fcntl, isblock.sh files. The check_fcntl utility checks if cache is locked. The isblock.sh script deletes unlocked caches.
Grant execution permissions for these files:
chmod +x check_fcntl isblock.sh
Set a schedule for running the isblock.sh script in the scheduler, for example cron.
As a result, unlocked caches will be cleared automatically based on a schedule.
Start the isblock.sh script for a single-time clearing.
To clear development environment object cache, select the Repository > Clear Assembly Cache item in the security manager's main menu.
To work with cache of various repository objects in the Fore language, use properties and methods of the IMetabase, IMetabaseObject interfaces. To clear object cache, use the IMetabaseCache.FlushAll method.
See also: