Skip to content

appronto/Entity-cache-module

Repository files navigation

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).

About

Set, get and remove an object in the Mendix runtime cache

Resources

Stars

Watchers

Forks

Packages

No packages published