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

Improve tags stats performance by using the new short_url_visits_counts table #2078

Merged

Conversation

acelaya
Copy link
Member

@acelaya acelaya commented Mar 28, 2024

Part of #1346

Change how visits amounts are calculated for tags with stats, so that it does a SUM of short_url_visits_countsinstad of aCOUNTofvisits`.

This drastically improves performance, but it still takes as long even when only a subset of tags is returned.

Further work should be done to re-work the whole query.

@acelaya acelaya merged commit 7f4137e into shlinkio:develop Mar 28, 2024
21 checks passed
@acelaya acelaya deleted the feature/tags-stats-improvements branch March 28, 2024 18:32
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

Successfully merging this pull request may close these issues.

1 participant