Repository navigation
perf(crons): Drop the check-in config FK index - #131374
Merged
Merged
Conversation
This was referenced Nov 16, 2026
evanpurkhiser
approved these changes
Nov 16, 2026
Contributor
|
This PR has a migration; here is the generated SQL for for --
-- Custom state/database change combination
--
DROP INDEX CONCURRENTLY IF EXISTS "sentry_monitorcheckin_checkin_config_id_17e2de71"; |
wedamija
added a commit
that referenced
this pull request
Nov 16, 2026
Part of a series that shrinks the indexes on `sentry_monitorcheckin`. Every check-in has a config now, so `checkin_config` becomes NOT NULL. Post-deploy, because validating the constraint scans the whole table. Merge order: 1. #131374 2. #131375 (post-deploy migration) ← this PR 3. #131376 (post-deploy migration)
wedamija
added a commit
that referenced
this pull request
Nov 16, 2026
Part of a series that shrinks the indexes on `sentry_monitorcheckin`. Swaps the `(status, timeout_at)` index for a partial index on `timeout_at` over in-progress check-ins, the only rows the timeout task reads. Post-deploy, because it builds an index. Merge order: 1. #131374 2. #131375 (post-deploy migration) 3. #131376 (post-deploy migration) ← this PR
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of a series that shrinks the indexes on
sentry_monitorcheckin.Drops the index on
checkin_config_id. It was only needed to check that every check-in has a config, and now they all do. Nothing deletes configs, so the foreign key never needs it.Merge order: