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

Speed up mediaitems_view #1013

Open
KillerX opened this issue Sep 27, 2024 · 0 comments
Open

Speed up mediaitems_view #1013

KillerX opened this issue Sep 27, 2024 · 0 comments
Assignees

Comments

@KillerX
Copy link
Member

KillerX commented Sep 27, 2024

mediaitems_view is is a frequently used view.
It appears to have slowed down significantly with more data.

After some preliminary investigation it appears that by removing the timed metadata subquery the execution can be sped up by ~50-60% (~1.2 sec -> 0.4 sec). Further improvements may be possible.

This would mean offloading the subquery an only running it when needed, i.e. not when we need shorts. This has a direct impact on shorts loading time for cases where the results are not in cache.

Increase cache time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant