ModlrLeanLoad

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.

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