Skip to content

Conversation

@smudge
Copy link
Member

@smudge smudge commented Feb 10, 2026

Stacked PRs:


refactor: De-complexify 'count' metric

Given that live_count_grouped is already necessary for computing all
the other live queue metrics, we can reduce the work on MySQL by running
failed_count_grouped (and filtering the scan down to fewer rows)
instead of an entire count against the table.

Given that `live_count_grouped` is already necessary for computing all
the other live queue metrics, we can reduce the work on MySQL by running
`failed_count_grouped` (and filtering the scan down to fewer rows)
instead of an entire count against the table.

stack-info: PR: #97, branch: smudge/stack/8
smudge added a commit that referenced this pull request Feb 10, 2026
Given that `live_count_grouped` is already necessary for computing all
the other live queue metrics, we can reduce the work on MySQL by running
`failed_count_grouped` (and filtering the scan down to fewer rows)
instead of an entire count against the table.

stack-info: PR: #97, branch: smudge/stack/8
@smudge smudge marked this pull request as draft February 10, 2026 17:27
@smudge smudge changed the base branch from smudge/stack/7 to main February 10, 2026 17:27
smudge added a commit that referenced this pull request Feb 10, 2026
Given that `live_count_grouped` is already necessary for computing all
the other live queue metrics, we can reduce the work on MySQL by running
`failed_count_grouped` (and filtering the scan down to fewer rows)
instead of an entire count against the table.

stack-info: PR: #97, branch: smudge/stack/8
@smudge smudge changed the base branch from main to smudge/stack/7 February 10, 2026 17:27
@smudge smudge marked this pull request as ready for review February 10, 2026 17:27
@smudge smudge marked this pull request as draft February 10, 2026 17:28
@smudge smudge changed the base branch from smudge/stack/7 to main February 10, 2026 17:28
@smudge smudge changed the base branch from main to smudge/stack/7 February 10, 2026 17:29
@smudge smudge mentioned this pull request Feb 10, 2026
@smudge smudge marked this pull request as ready for review February 10, 2026 17:29
@smudge smudge marked this pull request as draft February 10, 2026 17:31
@smudge smudge changed the base branch from smudge/stack/7 to main February 10, 2026 17:31
@smudge smudge changed the base branch from main to smudge/stack/7 February 10, 2026 17:32
@smudge smudge marked this pull request as ready for review February 10, 2026 17:32
@smudge smudge requested a review from effron February 10, 2026 17:37
@smudge smudge marked this pull request as draft February 10, 2026 18:10
@smudge smudge changed the base branch from smudge/stack/7 to main February 10, 2026 18:10
@smudge smudge changed the base branch from main to smudge/stack/7 February 10, 2026 18:11
@smudge smudge marked this pull request as ready for review February 10, 2026 18:11
smudge added a commit that referenced this pull request Feb 10, 2026
Given that `live_count_grouped` is already necessary for computing all
the other live queue metrics, we can reduce the work on MySQL by running
`failed_count_grouped` (and filtering the scan down to fewer rows)
instead of an entire count against the table.

stack-info: PR: #97, branch: smudge/stack/8
smudge added a commit that referenced this pull request Feb 10, 2026
Given that `live_count_grouped` is already necessary for computing all
the other live queue metrics, we can reduce the work on MySQL by running
`failed_count_grouped` (and filtering the scan down to fewer rows)
instead of an entire count against the table.

stack-info: PR: #97, branch: smudge/stack/8
smudge added a commit that referenced this pull request Feb 11, 2026
Given that `live_count_grouped` is already necessary for computing all
the other live queue metrics, we can reduce the work on MySQL by running
`failed_count_grouped` (and filtering the scan down to fewer rows)
instead of an entire count against the table.

stack-info: PR: #97, branch: smudge/stack/8
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