web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

SearchResourceAvailabilityForRequirementGroup is too slow

(0) ShareShare
ReportReport
Posted on by 30

In our production system we have seen that the calls to SearchResourceAvailabilityForRequirementGroup are some times slower than 7 secs.

Looking in app insights we can see that the following plugin is the main issue. For instance in a call to availability API that took 19.7 seconds (!!??) the plugin took 9.4secs.

Microsoft.Dynamics.ScheduleCommon.Fps.FpsPlugin
Duration | 9.4 s

Another step that also contributes to the overall time is this..
SDKmsdyn_RetrieveRequirementGroupCandidates
Duration | 6.3 s

Why is the API so slow?

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi.

    It may be related to the search you are running.

    Consider those options:

    - Disable the time travel and distance if you are not using;

    - Reducing the gap between the start and end dates;

    - Limit the query for top 10 resources;  

  • Suggested answer
    Gabriel Dias Junckes Profile Picture
    2,428 on at

    Hi.

    It may be related to the search you are running.

    Consider those options:

    - Disable the time travel and distance if you are not using;

    - Reducing the gap between the start and end dates;

    - Limit the query for top 10 resources;  

  • HectorMeneses Profile Picture
    30 on at

    I don't think this is the issue.

    We get good response times from the API once it has been used for a bit. But if it is cold the first 2 or 3 requests take a long time.

    Looking in app insights I can see this behavior:

    - The API is called after some period of inactivity.

    - A workflow is retrieved. Here there's a considerable gap in execution of around 5 secs! From reading about Actions, they are executed as real time workflows. But in this case it looks like it is not real-time at all. 

    - There's another gap in between the msdyn_schedulingparameter call and the webrsource one. 3 secs..

    - The gaps become smaller as the API is used. Here, maybe something is raising the priority of the associated workflow? or SQL is also caching the plans and data for the API...Not sure.

    pastedimage1656512735563v1.png

    Also, we have noticed that the API slows down if we are creating bookable resource bookings ( which is why I was asking about NOLOCK clause in another thread ).

  • Suggested answer
    Gabriel Dias Junckes Profile Picture
    2,428 on at

    Hi.

    Interesting, I worked with Microsoft on the performance of this API some time ago but it was related to the Bing Map API (Travel time calculation).

    I don't know if you notice but it is very slow to load an app for the first time. It takes more than a minute to load the home pages sometimes. 

    It is maybe something that Microsft switches off when the resource is inactive. I notice the difference when the environment type is production.

    Do you catch anything using the Application Insights?

    Analyze model-driven apps and Microsoft Dataverse telemetry with Application Insights

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Travis South Profile Picture

Travis South 37

#2
11manish Profile Picture

11manish 33 Super User 2026 Season 2

#3
Ayesha Wajahat Profile Picture

Ayesha Wajahat 18

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans