ModlrLeanLoad
No edit summary
(Adding page to Category:TOC because it contains a TOC.)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
ModlrLeanLoad is a functionality present in MDriven Turnkey and MDriven Server and helps the server to start up faster, using minimal memory.
ModlrLeanLoad is a functionality present in MDriven Turnkey and MDriven Server that helps the server start up faster, using minimal memory.


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


==== How It Works ====
==== 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 file does not hold any AssetsTK so no time is spent on checking Assets within; also, the assets do not increase the memory pressure of the server.
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 file does not hold any AssetsTK so no time is spent on checking Assets within; also, the assets do 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 the 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 a ModlrLeanLoadModel.modlr is created without the assetsTK - also the Diagrams have 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 the 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 a ModlrLeanLoadModel.modlr is created without the AssetsTK - also, the Diagrams have been stripped from the modlr file saved.


==== Purpose ====
==== 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.
Your application will start up more often with a well-known model, 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 happens when something actually has changed.


==== How ====
==== How ====
Line 23: Line 23:


===== Troubleshoot =====
===== Troubleshoot =====
To force the application to re-create ModlrLeanLoadModel.modlr on next start you can delete the ModlrLeanLoadChecksum.xml file.
To force the application to re-create ModlrLeanLoadModel.modlr on the next start, you can delete the ModlrLeanLoadChecksum.xml file.


The ModlrLeanLoadModel.modlr is not complete - it has been stripped from all diagrams and all ViewModel content. ViewModels are instead loaded according to the [[Softview]] strategy
The ModlrLeanLoadModel.modlr is incomplete - it has been stripped from all diagrams and all ViewModel content. ViewModels are instead loaded according to the [[Softview]] strategy.


See also [[Softview]]
See also: [[Softview]]
{{Edited|July|12|2024}}
[[Category:MDriven Server]]
[[Category:MDriven Turnkey]]
 
[[Category:TOC]]

Latest revision as of 13:32, 26 March 2024

ModlrLeanLoad is a functionality present in MDriven Turnkey and MDriven Server that helps the server start up faster, using 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
  3. Not complete ViewModels (new from 231111 - see Softview)

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 file does not hold any AssetsTK so no time is spent on checking Assets within; also, the assets do 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 the 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 a ModlrLeanLoadModel.modlr is created without the AssetsTK - also, the Diagrams have been stripped from the modlr file saved.

Purpose

Your application will start up more often with a well-known model, 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 happens when something actually has changed.

How

ModlrLeanLoad is present in builds after 2023-09-05 and is used by default.

Troubleshoot

To force the application to re-create ModlrLeanLoadModel.modlr on the next start, you can delete the ModlrLeanLoadChecksum.xml file.

The ModlrLeanLoadModel.modlr is incomplete - it has been stripped from all diagrams and all ViewModel content. ViewModels are instead loaded according to the Softview strategy.

See also: Softview

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