-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Missing indexes in appconfig and flow_operations #25342
Comments
Is this Issue still valid in NC21.0.2? If not, please close this issue. Thanks! :) |
Might not be a huge issue especially if there are no or a small amount of flow operations configured, but would still be good for larger amounts. We could probably add an index to the first couple of chars that wouldn't help much with the query since indexes are not used on not equal comparisons ( |
I am using Nextcloud 22.2.5 and the problem still exists. I followed the NC "Performance consideration":
The output is similar to what is shown above. Interesting is But I also see I am wondering is this just a problem for some users? @juliushaertl I do not understand you saying "Might not be a huge issue". Considering what the performance consideration linked above say: "The general rule is: database queries are very bad and should be avoided if possible." What might also be worth the developers' time: Try running MySQL Tuning-Primer.sh. I get there (just for my NC installation) things like:
and
Also MySQLTuner reports that there are lots of performance enhancements from which NC would benefit. |
Fixed with #41755 |
Steps to reproduce
set
log_queries_not_using_indexes = 1
to mysql config.Expected behaviour
Probably a very few logfile entrys from upgrades etc.
Actual behaviour
Nextcloud version: (see Nextcloud admin page)
20.0.6
Updated from an older Nextcloud/ownCloud or fresh install:
Originally Owncloud, several major Nextcloud versions upgraded
Signing status:
No errors have been found.
List of activated apps:
IMHO if the same querys happen that often (should roughly be 1 request per second being logged) there should be an Index.
Regards!
The text was updated successfully, but these errors were encountered: