Performance in AL Language development (BC2021 wave 2)

by Sep 29, 2021AL Language

Home 9 Development 9 AL Language 9 Performance in AL Language development (BC2021 wave 2)

In just a few days the new major version of Business Central 2021 wave 2 will be introduced! This is again a huge set of changes that comes with this new version.

In this article, we will look at the most important changes in AL Language performance (performance snapshot debugging and changes in development to reflect performance issues).

 

Profiling AL performance with Snapshot Debugger

Until now, there has been no existing way of measuring the performance of development execution and troubleshooting cases of performance issues. Since performance is a priority in online businesses, Business Central introduces execution timing capture as a snapshot or part of it.

Snapshot captures will catch the executed code’s profile, and the AL Language extension for VS Code will have a performance profiling editor view so developers can dissect performance execution with call stack views.

Support for included columns in the keys

Developers can modify indexes to included data required for some queries using the partial record loading feature, and these data can be loaded quickly using the index pages.

By using the keyword IncludedColumns in the key definition while creating indexes with included columns, developers can now create indexes that perform great.

Benefits of indexes with included columns are:

    1. In an index definition, included columns will not count against the limit of 16 fields (maximum number of fields that can be part of the key). Included columns do not count to this limit.
    2. It requires less database I/O.
    3. It is smaller and more possibly cached.

Support for non-clustered column store indexes

With the Business Central 2021 wave 2 developers can create NCCIs (non-clustered column store indexes) by using the keyword Columnstore in the table definition. NCCIs may have multiple performance benefits in reducing table locking caused by maintaining original SIFT indexes (which can be replaced by modern NCCI technology).

NCCIs provide a better performance, especially when developers use SetAutoCalcFields for fields without SIFT index.

Recent Articles from the category

BC Open Source? How to start?

BC Open Source? How to start?

BC Open Source? How to start? One of the most exciting news introduced last month in Lyon during Directions EMEA 2023 was the changes to the open-source initiative. This means that you can now contribute to the source code of the Base app and the System app, which are...

read more
Validate a FlowField Field. Wait? What?

Validate a FlowField Field. Wait? What?

Validate a FlowField Field. Wait? What? There are not many things in the AL Language that surprised me. However, last week, I found one such thing - I reviewed customizations made by another partner and had to analyze the OOTB code of the Demand Forecast matrix. I run...

read more
Dynamics NAV 2013 & Expired Cronus License

Dynamics NAV 2013 & Expired Cronus License

We found an interesting problem - we were not able to run the development environment for Dynamics NAV 2013. Whenever we tried to run the development client, we got the following error message: "Your program license has expired" and the development client has closed...

read more
Indirect Dependencies and Access Modifiers

Indirect Dependencies and Access Modifiers

Last week, there was a discussion on Yammer on how to get values from the "Sent Email" record when all fields are marked as Internal. I was surprised that many people do not know what can/can't access modifiers (such as local, protected, or internal) be used for. I...

read more
AL Extensions: Replace Document Attachment

AL Extensions: Replace Document Attachment

I have published a new simple, open-source extension that allows replacing existing document attachments in all master entities as well as in open documents. The source code as well as the app file that can be installed in your environment is available on my GitHub...

read more

Sign Up for News

Certifications

Highest certification
Microsoft Data Management and
also in D365 Business Central

Microsoft Certified: Dynamics 365 Business Central Functional Consultant Associate

See other certifications here