deploy: 78fa831aec
This commit is contained in:
parent
52fa2ea99a
commit
35e175dacf
208 changed files with 416 additions and 416 deletions
|
|
@ -631,7 +631,7 @@ this specific table will not be used as temporary by someone else. Reacting to t
|
|||
<p>Let&rsquo;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&rsquo;s suggested to split the subscribers by functionality and avoid putting business logic in the actual codeunit. Tip: put all business logic in an &ldquo;<a href="https://alguidelines.dev/bcpatterns/generic-method-pattern/">Method Codeunit</a>&rdquo;.</p>
|
||||
<p>Therefore, it&rsquo;s suggested to split the subscribers by functionality and avoid putting business logic in the actual codeunit. Tip: put all business logic in an &ldquo;<a href="https://alguidelines.dev/docs/patterns/generic-method-pattern/">Method Codeunit</a>&rdquo;.</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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue