Release Notes:
Improvements:
* Added caching of Script Validations in the front-end and service to improve validation performance.
Description:
This functionality was tested in a client environment and it made a big difference. A single reported result was process validations that took 10 minutes previously now take less than 1 minute.
The idea behind the change is that we keep a copy of the compiled version of the script validation in a cache. This will save time when executing the validation since we do not have to compile it every time we need it.
Essentially the way it works is:
- When we need to run a validation we will check the cache
- If the validation does not already exist in the cache
- we compile it and
- add it to the cache
- We then load the precompiled version from the cache and run it
- When a validation is changed we update the version in the cache when the user saves the changes
- If a validation is set inactive or deleted we remove it from the cache
- The cache will have the latest versions of the validations precompiled and ready to be used, thus saving compilation time on every use.
No comments:
Post a Comment