-
Notifications
You must be signed in to change notification settings - Fork 185
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
25.0.0-alpha3: missing index on feeds(deleted_at
)
#2526
Comments
Could you make a pull request to remedy that? |
Unfortunately I know nothing about how nextcloud handles it's database definitions/migrations. Ideally that index would be handled the same way as other missing indices that are listed after and update/upgrade and get resolved with |
I will check how we can do that :) |
Changed - Add DB index for news_feeds.deleted_at (#2526) Fixed - PostgreSQL implement fix for marking over 65535 unread items as "read" Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
IMPORTANT
Read and tick the following checkbox after you have created the issue or place an x inside the brackets ;)
Explain the Problem
What problem did you encounter?
news creates queries that can not be properly optimised by MySQL:
this results in high load on the DB when there are many (>100k) news items even if there are only a few dozen feeds. The problem is the missing index on feeds.deleted_at.
Steps to Reproduce
Explain what you did to encounter the issue
just open the news page and monitor the server load/query with mysqladmin processlist. Initial queries can last up to 20 minutes.
System Information
The issue is resolved by adding an index on oc_news_feeds.deleted_at:
The text was updated successfully, but these errors were encountered: