This commit is contained in:
waldo1001 2023-02-22 12:17:42 +00:00
parent 52fa2ea99a
commit 35e175dacf
208 changed files with 416 additions and 416 deletions

View file

@ -631,7 +631,7 @@ this specific table will not be used as temporary by someone else. Reacting to t
<p>Let’s discuss all points</p>
<h2 id="keep-the-codeunit-as-small-as-possible">Keep the codeunit as small as possible</h2>
<p>Every time a subscriber gets called, a new instance of the codeunit is being loaded in memory, which takes memory and processing power. The smaller the codeunit, the less memory, and the faster it is.</p>
<p>Therefore, it’s suggested to split the subscribers by functionality and avoid putting business logic in the actual codeunit. Tip: put all business logic in an “<a href="https://alguidelines.dev/bcpatterns/generic-method-pattern/">Method Codeunit</a>”.</p>
<p>Therefore, it’s suggested to split the subscribers by functionality and avoid putting business logic in the actual codeunit. Tip: put all business logic in an “<a href="https://alguidelines.dev/docs/patterns/generic-method-pattern/">Method Codeunit</a>”.</p>
<p>Examples:</p>
<ul>
<li>if you app does things on Sales and Purchase, create a Sales-subs codeunit, and a Purchase-subs.</li>