Skip to content

Conversation

seer-by-sentry[bot]
Copy link
Contributor

@seer-by-sentry seer-by-sentry bot commented Oct 7, 2025

Fixes SENTRY-FOR-SENTRY-7MET. The issue was that: Missing index on sentry_grouprulestatus.date_added forces full table scan, exceeding database statement timeout.

  • Adds an index to the date_added field in the GroupRuleStatus model.
  • Creates a new migration to alter the date_added field and add the db_index=True property.

This fix was generated by Seer in Sentry, triggered by armenzg@sentry.io. 👁️ Run ID: 115

Not quite right? Click here to continue debugging with Seer.

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 7, 2025
Copy link

codecov bot commented Oct 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #101080      +/-   ##
===========================================
- Coverage   81.11%    81.09%   -0.03%     
===========================================
  Files        8659      8659              
  Lines      384286    384512     +226     
  Branches    24250     24250              
===========================================
+ Hits       311714    311818     +104     
- Misses      72228     72350     +122     
  Partials      344       344              

Copy link
Contributor

github-actions bot commented Oct 7, 2025

This PR has a migration; here is the generated SQL for src/sentry/migrations/0996_add_grouprulestatus_date_added_idx.py

for 0996_add_grouprulestatus_date_added_idx in sentry

--
-- Alter field date_added on grouprulestatus
--
CREATE INDEX CONCURRENTLY "sentry_grouprulestatus_date_added_7fc34e90" ON "sentry_grouprulestatus" ("date_added");

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.

0 participants