Skip to content

CalDAV availability checking is slow (30+ seconds) #479

@kuba-orlik

Description

@kuba-orlik

Issue Summary

I've set up CalDAV integration with a few calendars from my Nextcloud server. Now, when scheduling a call, loading availability for a given day takes very long (up to 30s):

image

When using the "troubleshoot availability" option for a given date, the view contains event from 2 years ago:

image

This leads me to suspect that calendso downloads and checks all the events in the calendar, not only those affecting a given day, making it quite slow.

Steps to Reproduce

  1. Connect CalDAV calendars with a lot of events
  2. Open the call scheduling form
  3. Click on a date
  4. wait...

Any other relevant information. For example, why do you consider this a bug and what did you expect to happen instead?

Technical details

  • Browser version: Firefox 91 (dev edition)
  • Node.js version: 14

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions