-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Missed sql index #4625
Comments
I had the same problem. In mysql-slow.log I saw queries like this lasting more than 40s when renaming a folder or sharing a folder when encryption was enabled.
I created the index on the path column for oc_filecache and the problem was gone. |
Well makes sense, the main problem is that adding it to huge instances will take like forever. |
The problem is that not all mysql configurations allow creating index on long string columns meaning that we can't rely on indexes on this column. Ongoing work is being done to reduce the number of queries that run into this problem |
We improved in this regard hugely. Please check out the latest version and check the admin page if there are pending indexes (it will show it to you and also list a command on how to add it). Beside that we should focus on #10926 |
Table filecache has no index on the path column.
Slow query log sometimes shows that queries like
Take > 10 secs.
Adding an index on the 'path' column seems to help.
The text was updated successfully, but these errors were encountered: