ModlrLeanLoad
(Created page with "ModlrLeanLoad is a functionality present in MDriven Turnkey and MDriven Server and helps the server to start up faster and use minimal memory. ModlrLeanLoad works by producin...")
 
No edit summary
Line 14: Line 14:


If ModlrLeanLoadChecksum.xml is not found or if the checksum within is not equal to the checksum of the current MDrivenServer - then the normal load model from Admin database is performed - this model is also checked for AssetsTK and AssetsTK and codedress are distributed as needed. After this is done a new ModlrLeanLoadChecksum.xml is created and also a ModlrLeanLoadModel.modlr is created without the assetsTK - also the Diagrams has been stripped from the modlr file saved.
If ModlrLeanLoadChecksum.xml is not found or if the checksum within is not equal to the checksum of the current MDrivenServer - then the normal load model from Admin database is performed - this model is also checked for AssetsTK and AssetsTK and codedress are distributed as needed. After this is done a new ModlrLeanLoadChecksum.xml is created and also a ModlrLeanLoadModel.modlr is created without the assetsTK - also the Diagrams has been stripped from the modlr file saved.
==== Purpose ====
Your application will start up more often with a well known model and with the assets being the same as last time than with a completely new version with potentially changed assets. ModlrLeanLoad enables the server to start faster with less memory for the many times when nothing has changed - but still do all the normal automation that takes place when something actually has changed.

Revision as of 14:37, 5 September 2023

ModlrLeanLoad is a functionality present in MDriven Turnkey and MDriven Server and helps the server to start up faster and use minimal memory.

ModlrLeanLoad works by producing 2 files in the App_Data directory of the application:

  • ModlrLeanLoadChecksum.xml
  • ModlrLeanLoadModel.modlr

The ModlrLeanLoadChecksum.xml holds the checksum for the saved model in the ModlrLeanLoadModel.modlr file.

The ModlrLeanLoadModel.modlr file is a reduction of the uploaded model but differs in the following ways:

  1. No AssetsTK folder or content is present
  2. No Diagrams (Except statediagrams) are present

How it works

If ModlrLeanLoadChecksum.xml is found and the contained checksum equals the current model in the MDrivenServer the Model is NOT loaded from the admin db , but rather from the ModlrLeanLoadModel.modlr. This files does not hold any AssetsTK so no time is spend on checking Assets within, also the assets does not increase the memory pressure of the server.

If ModlrLeanLoadChecksum.xml is not found or if the checksum within is not equal to the checksum of the current MDrivenServer - then the normal load model from Admin database is performed - this model is also checked for AssetsTK and AssetsTK and codedress are distributed as needed. After this is done a new ModlrLeanLoadChecksum.xml is created and also a ModlrLeanLoadModel.modlr is created without the assetsTK - also the Diagrams has been stripped from the modlr file saved.

Purpose

Your application will start up more often with a well known model and with the assets being the same as last time than with a completely new version with potentially changed assets. ModlrLeanLoad enables the server to start faster with less memory for the many times when nothing has changed - but still do all the normal automation that takes place when something actually has changed.

This page was edited 38 days ago on 03/26/2024. What links here