Skip to content

Conversation

@spalmurray
Copy link
Contributor

List most used tags at the top of the tag lists. Minimal query overhead for this
tested with 5000 incidents, our full prod tags list, and random tag relationships - query for sorted tags is on the order of 1 ms (due to indexing of M2M relationship). This query also happens in the background, so not even noticable if it was slow. If becomes a problem in the future we can fix with a denormalized usage_count field updated with signals. Nice to have feature.

@spalmurray spalmurray marked this pull request as ready for review January 19, 2026 21:00
@spalmurray spalmurray requested a review from rgibert January 19, 2026 21:05
@spalmurray spalmurray merged commit d45afd0 into main Jan 19, 2026
14 checks passed
@spalmurray spalmurray deleted the spalmurray/sort-tage-by-usage branch January 19, 2026 21:12
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.

3 participants