PL 400 : optimize plug-in performance (Create a plug-in)
Microsoft Dataverse has a plugin power tool that gives the ability to enhance the behavior of the platform. Microsoft recommends using this tool when all other out of the box functionalities do not work to meet business requirements. A well written plugin gives Optima performance but a poorly written plugin environment can have a significant impact on performance, so it is common advice for developers to write optimized code.
Optimization is the set of best practices and standards that developers use to make software code run efficiently.
In customer-relationship applications, poor performance can lead to even bigger problems. Instead of helping our customers do business with the company and build a competitive advantage, the software application frustrates them. They may try to reload the page, causing even more problems and delays for the application. Application performance can directly affect company metrics such as employee performance and productivity.
I collected some best practices and standards for optimizing plugin performance which are below:
Asynchronous or Synchronous plugin:
Synchronous Mode:
Infinite loop consideration:
External Service:
If we use any external service in the plugin then don't forget to close the connection and don't use heavy object as it may cause the plugin to slow down.
Late Binding vs Early Binding:
Use the Entity Class (Late Binding) result is slightly better performance than the early bound entity types.
Time Limit:
A plugin registered for synchronous or asynchronous execution in restricted to complete its execution in a two minute time limit.
Stateless Condition:
Permission/Privilege:
Sequential GUID :
Comments
Post a Comment