Improve GraphAPI performance

Rajeshkumar.L 1 Reputation point
2021-12-06T11:58:13.473+00:00

Hi All,

We are using MS Graph Endpoints like (Me, Me/Calendar ,Me/Calendar/View).
To perform each endpoint its taking longer time than expected.

Please find the details below.

155305-image.png

Please assist us How to improve the performance.

Share the infra structure details like (License, services) to improve graph performance.
Any other alternatives to improve performance.

Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sheena-MSFT 1,736 Reputation points
    2022-04-14T13:48:15.877+00:00

    Hi @Rajeshkumar.L ,

    To improve the performance while using calendarView Graph API please follow the below best practices:

    • Select :- Use $select on the API so that we can exclude properties which we don't need as part of results, It will intern results faster response.
      Example : $select=Id,ChangeKey,Categories,OriginalStartTimeZone,OriginalEndTimeZone,iCalUId,HasAttachments,
      Subject,IsCancelled,IsOrganizer,ResponseRequested,SeriesMasterId,ShowAs,Type,IsDraft,Start,End.
    • Numerous Events:- Can you please confirm how many recurring events do you see from the calendar view.
      Example :
      Two recurring Events in a week
      Five Recurring events in a week
      X Recurring events in a week
    • Top/Skip Use $skip and/or $top in the API query parameters doesn't necessarily skip the calculations needed for getting the
      results for this API.
      Hence, If a larger window of Calendar View is to be queried, please make sure calendar view API calls with
      different time windows, rather than using a larger time window and relying on $skip and $top.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.