Skip to content

[Bug]: Slow /apps/files/tags Loading #49812

Open
@fa0311

Description

⚠️ This issue respects the following points: ⚠️

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.

Image

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

  1. Open https://example.com/apps/files/tags

Expected 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?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

...

List of activated Apps

...

Nextcloud Signing status

...

Nextcloud Logs

...

Additional info

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions