[Bug]: Missing column in database index on query for time sensitive background jobs #46126
Open
4 of 8 tasks
Labels
1. to develop
Accepted and waiting to be taken care of
29-feedback
bug
good first issue
Small tasks with clear documentation about how and in which place you need to fix things in.
performance 🚀
Bug description
The query 4f0fc707a2e82ec699067a969cd17b05
does not use a covering index. The index
job_lastcheck_reserved
only coverslast_checked
andreserved_at
, nottime_sensitive
. The database has to scan a bunch of rows every time cron picks the next job outside the maintenance window:Steps to reproduce
Expected behavior
An index on
(last_checked, reserved_at, time_sensitive)
Installation method
None
Nextcloud Server version
29
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
cc @nickvergessen
The text was updated successfully, but these errors were encountered: