-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
[Bug]: Slow /apps/files/tags Loading #49812
Copy link
Copy link
Closed
Labels
0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmap30-feedbackbugfeature: databaseDatabase related DBDatabase related DBfeature: tagsperformance 🚀
Metadata
Metadata
Assignees
Labels
0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmap30-feedbackbugfeature: databaseDatabase related DBDatabase related DBfeature: tagsperformance 🚀
Type
Fields
Give feedbackNo fields configured for Bug.
Bug description
When accessing https://example.com/apps/files/tags, the page takes 15 seconds to load. The Nextcloud instance experiencing this issue has 6,300 tags and 280,000 tag mappings.
Upon opening the developer console, the PROPFIND request to https://example.com/remote.php/dav/systemtags/ takes 10 seconds. It seems that this API is intended to retrieve all tag information at once.
A similar API, https://example.com/remote.php/dav/systemtags-assigned/image/, responds in 1 second. The reason for the 10x difference in performance is unclear.
It appears that the issue could be resolved by implementing pagination, such as offset or cursor-based loading, to load 100 items at a time, rather than loading everything in one go.
Steps to reproduce
https://example.com/apps/files/tagsExpected behavior
...
Nextcloud Server version
30
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
...List of activated Apps
Nextcloud Signing status
Nextcloud Logs
...Additional info
No response