Entity Cache module

Content Type: Module
Categories: Import/Export

Overview

When you have microflows that do a lot of retrieves of the same entity you can use this module to reduce the number of database queries by storing them in the cache. The **Entity Cache module** supports multiple entities but only stores one per type (like 1 systemsettings object, 1 emailsettings object etc).

Documentation

Entity Cache module

When you have microflows that do a lot of retrieves of the same entity you can use this module to reduce the number of database queries by storing them in the cache. The Entity Cache module supports multiple entities but only stores one per type (like 1 systemsettings object, 1 emailsettings object etc).

Performance

The test module has some unit tests that prove the performance of this module.

11 ms for 1000 retrieves from cache vs 2476 ms for 1000 database retrieves! unittests

Current functions

  • JA_ReplaceEntityInCache
  • JA_RetrieveEntityFromCache
  • JA_RemoveEntityFromCache

Example microflow to get or create a cached object

microflow example

Use this pattern to make sure you always have a correct object (either from the cache, from the database or, the newly created object).

Releases

Version: 2.1.0
Framework Version: 9.0.5
Release Notes: Structured documents in module root.
Version: 2.0.0
Framework Version: 9.0.5
Release Notes: Mendix 9 export
Version: 1.0.0
Framework Version: 8.14.1
Release Notes: Current functions - JA_ReplaceEntityInCache - JA_RetrieveEntityFromCache - JA_RemoveEntityFromCache