Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2022 Release Wave 2Check out the latest updates and new features of Dynamics 365 released from October 2022 through March 2023
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
Hello Guys ,
I've been two days struggling to know the reason but with no luck
I have dynamics 365 on premise and we have some customizations on case form and workflows and plugins on create
When I open new fresh session the request creation took almost 8 seconds , however after save first request and try to submit a new request again it took almost 2 seconds
I need to understand what's the caching behavior on server side that make first request took all this time compared to the upcoming requests coz this is misleading to decide performance is good or not
Hello, the first time a request is made there is no information about the process in the cache memory, so the information must be loaded (the information that loads will depend on the process that is running so I cannot specify you in this case which is going to be). In the next executions there will already be information in the cache memory so the execution will be faster.
However, it strikes me that the first execution lasts 8 seconds, it is a long time. I would recommend opening a ticket for it.
Community Support Team - Esteban
If this Post helps, then please consider Accept as solution to help the other members find it more quickly.
Plugins are stateless, this means that the server needs to construct the plugin instance in the first call. The same plugin instance will be used in the next operation.
As Esteban said, 8 seconds is a lot for the first execution. I recommend adding some trace logs to your plugin and check the Execution Duration.
Thank you for clarifying
but I have a question , the same stateless behavior is also applied for out of the box workflows and custom activities ?
so if I have some workflows on create and some of them have custom activities , so the cache memory will save their instances in first run also
Thank you again
Business Applications communities