[Bug]: Query on calendarobjects by classification takes too long as it is not indexed #35136
Closed
6 of 9 tasks
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
25-feedback
bug
feature: caldav
Related to CalDAV internals
performance 🚀
technical debt
Bug description
calendarobjects
table getting rows by theclassification
column are taking too longSELECT DISTINCT(classification) FROM calendarobjects;
, I confirm that this column only stores the values 0, 1 and 2Steps to reproduce
occ maintenance:repair
stepRemove activity entries of private events
Alternatively, to reproduce:
SELECT c.principaluri, o.calendarid, o.uid FROM calendarobjects o LEFT JOIN calendars c ON c.id = o.calendarid WHERE o.classification = 1;
SELECT c.principaluri, o.calendarid, o.uid FROM calendarobjects o LEFT JOIN calendars c ON c.id = o.calendarid WHERE o.classification = 2;
Expected behavior
classification
parameter should be quickInstallation method
Community Docker image
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.0
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
No response
Are you using the Nextcloud Server Encryption module?
No response
What user-backends are you using?
Configuration report
No response
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: