perf: increase Office365 calendarView page size to 999 to minimize pagination (#27407)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
47becd416d
commit
81a656930a
1 file changed
+3
-1
@@ -369,7 +369,9 @@ class Office365CalendarService implements Calendar {
|
||||
dateFromParsed.toISOString()
|
||||
)}&endDateTime=${encodeURIComponent(dateToParsed.toISOString())}`;
|
||||
|
||||
const calendarSelectParams = "$select=showAs,start,end";
|
||||
// Request maximum page size (999) to minimize pagination rounds
|
||||
// Microsoft Graph allows up to 999 items per page for calendarView
|
||||
const calendarSelectParams = "$select=showAs,start,end&$top=999";
|
||||
|
||||
try {
|
||||
const selectedCalendarIds = selectedCalendars.reduce((calendarIds, calendar) => {
|
||||
|
||||
Reference in new issue
Block a user