-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Add parent index to oc_shares table #9327
Copy link
Copy link
Closed
Labels
3. to reviewWaiting for reviewsWaiting for reviewsfeature: install and updatefeature: sharingpapercutAnnoying recurring UX issue with possibly simple fix.Annoying recurring UX issue with possibly simple fix.technical debt🧱 🤔🚀🧱 🤔🚀
Milestone
Metadata
Metadata
Assignees
Labels
3. to reviewWaiting for reviewsWaiting for reviewsfeature: install and updatefeature: sharingpapercutAnnoying recurring UX issue with possibly simple fix.Annoying recurring UX issue with possibly simple fix.technical debt🧱 🤔🚀🧱 🤔🚀
Type
Fields
Give feedbackNo fields configured for issues without a type.
Steps to reproduce
Expected behaviour
See the list of files in a reasonable time
Actual behaviour
It takes ages to load the files' list. Looking at long queries in mysql log, it's because the field parent is not indexed.
We've tested locally, and had an increase in performance from 1.8s for the query to 0.4s, a huge improvement by just adding the field parent as a normal index.
We don't know how to add the index to the core tables. If we can get some reference on how to do this (table oc_shares), we can submit a simple Pull Request.