Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Redundant index appconfig.ac_app_lazy_i #43103

Closed
4 of 8 tasks
ChristophWurst opened this issue Jan 25, 2024 · 2 comments · Fixed by #42903
Closed
4 of 8 tasks

[Bug]: Redundant index appconfig.ac_app_lazy_i #43103

ChristophWurst opened this issue Jan 25, 2024 · 2 comments · Fixed by #42903

Comments

@ChristophWurst
Copy link
Member

ChristophWurst commented Jan 25, 2024

⚠️ This issue respects the following points: ⚠️

Bug description

create index ac_app_lazy_i
    on nextcloud.oc_appconfig (appid, lazy);

create index ac_app_lazy_key_i
    on nextcloud.oc_appconfig (appid, lazy, configkey);

the concatenated index ac_app_lazy_key_i fully covers the two first columns of ac_app_lazy_i. The database can also use ac_app_lazy_key_i when only the two first columns are accessed. ac_app_lazy_i is redundant. And hurts performance.

Steps to reproduce

  1. Install Nextcloud

Expected behavior

Efficient use of database indices.

Installation method

None

Nextcloud Server version

master

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?

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

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

Introduced with #41755.

👀 @ArtificialOwl and @artonge @come-nc @nickvergessen as reviewers

@ChristophWurst ChristophWurst added bug 1. to develop Accepted and waiting to be taken care of performance 🚀 labels Jan 25, 2024
@nickvergessen
Copy link
Member

WIP in #42903

@ArtificialOwl
Copy link
Member

yes, should be fixed by #42903

@ChristophWurst ChristophWurst added 3. to review Waiting for reviews and removed 1. to develop Accepted and waiting to be taken care of labels Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants