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

ref(crons): Tighten check_{missed,timeout} queries #70873

Conversation

evanpurkhiser
Copy link
Member

@evanpurkhiser evanpurkhiser commented May 14, 2024

We don't need to select everything. We can potentially improve query
performance here by allowing a Index Only scan 1, where the data comes
straight from the index

Footnotes

  1. https://pganalyze.com/docs/explain/scan-nodes/index-only-scan

@evanpurkhiser evanpurkhiser requested a review from a team as a code owner May 14, 2024 17:37
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label May 14, 2024
Copy link

codecov bot commented May 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (master@add00de). Click here to learn what that means.

❗ Current head 9acafa4 differs from pull request most recent head be6fb3b. Consider uploading reports for the commit be6fb3b to get more accurate results

Additional details and impacted files
@@            Coverage Diff            @@
##             master   #70873   +/-   ##
=========================================
  Coverage          ?   80.00%           
=========================================
  Files             ?     6506           
  Lines             ?   290896           
  Branches          ?    50139           
=========================================
  Hits              ?   232739           
  Misses            ?    57726           
  Partials          ?      431           
Files Coverage Δ
src/sentry/monitors/clock_tasks/check_missed.py 100.00% <100.00%> (ø)
src/sentry/monitors/clock_tasks/check_timeout.py 91.42% <100.00%> (ø)

@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/ref-crons-tighten-check-missed-timeout-queries branch from 3288325 to 9acafa4 Compare May 14, 2024 18:30
@evanpurkhiser evanpurkhiser requested a review from a team May 14, 2024 18:32
We don't need to select everything. We can potentially improve query
performance here by allowing a Index Only scan [0], where the data comes
straight from the index

[0]: https://pganalyze.com/docs/explain/scan-nodes/index-only-scan
@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/ref-crons-tighten-check-missed-timeout-queries branch from 9acafa4 to be6fb3b Compare May 14, 2024 19:08
@evanpurkhiser evanpurkhiser enabled auto-merge (squash) May 14, 2024 20:58
@evanpurkhiser evanpurkhiser merged commit bc6a0f8 into master May 15, 2024
48 checks passed
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/ref-crons-tighten-check-missed-timeout-queries branch May 15, 2024 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants