Skip to content

Commit 3770efd

Browse files
committed
feat(inc): Add index to GroupOpenPeriod data jsonfield
1 parent f17ceaf commit 3770efd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sentry/models/groupopenperiod.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ class Meta:
7373
indexes = (
7474
# get all open periods since a certain date
7575
models.Index(fields=("group", "date_started")),
76+
models.Index(
77+
models.F("data__pending_incident_detector_id"),
78+
name="data__pend_inc_detector_id_idx",
79+
),
7680
)
7781

7882
constraints = (

0 commit comments

Comments
 (0)