Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Dynamics 365 on premise First request take longer time

Posted on by 105

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

Thank you,

  • Ahmed Ghaib Profile Picture
    Ahmed Ghaib 105 on at
    RE: Dynamics 365 on premise First request take longer time

    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 

  • Suggested answer
    meelamri Profile Picture
    meelamri 13,204 User Group Leader on at
    RE: Dynamics 365 on premise First request take longer time

    Hi Ahmed,

    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. 

    pastedimage1621353681153v1.png

  • RE: Dynamics 365 on premise First request take longer time

    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.

    Thanks!

    Community Support Team - Esteban

    If this Post helps, then please consider Accept as solution to help the other members find it more quickly.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans