Graph Api calendar events performance is very slow

Nirenjana Raghupathy 26 Reputation points
2021-06-05T17:51:29.7+00:00

I’m using the below calendar API to get calendar events for a given user
GET /me/calendar/events

However I notice that by default only 10 records are returned. I’m trying to include top parameter in the url and do a callback in case nextlink has a value in the response.

I’m trying to add $top=500 to the api url. And I noticed that when top parameter is included, time taken for the response to be returned is very high. It does not matter if I use top=50 or top=500.

Without the top parameter, the response is returned in lesser than a second.

Any idea on how I can bring down the performance in this scenario?

Microsoft Security | Microsoft Graph
{count} vote

Your answer

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