Coding for Performance
When writing extensions for Dynamics 365 Business Central, it’s important to go beyond just thinking about the business process and also consider the performance of your code.
There is most likely something you could do to write more efficient AL code and maximize the performance of your extensions. Being aware of the recommended patterns and guidelines will improve your coding and lead to more successful projects. Throughout your career, this will save you time dealing with issues later down the line, and, more importantly, it will help you grow in your role and become a developer that people will learn from and depend on.
This chapter aims to give you some general guidance, and it will cover the following topics:
- Defining an efficient data access layer
- Writing efficient pages and reports
- Writing performant installation and upgrade AL codeunits
- Events and performance
- Running asynchronous patterns
- Testing...