# What this PR does Adds an index on the `started_at` column in the `alerts_alertgroup` table. For the alert groups query used by the `check_escalation_finished_task`, this resulted in a huge performance boost, taking the query time from 89mins to 4secs (on our largest production dataset). ## Which issue(s) this PR fixes closes #724 closes https://github.com/grafana/oncall-private/issues/1713 ## Checklist - [x] Unit, integration, and e2e (if applicable) tests updated - [x] Documentation added (or `pr:no public docs` PR label added if not required) - [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not required) |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| alert.py | ||
| alert_group.py | ||
| alert_group_counter.py | ||
| alert_group_log_record.py | ||
| alert_manager_models.py | ||
| alert_receive_channel.py | ||
| channel_filter.py | ||
| custom_button.py | ||
| escalation_chain.py | ||
| escalation_policy.py | ||
| grafana_alerting_contact_point.py | ||
| invitation.py | ||
| maintainable_object.py | ||
| resolution_note.py | ||
| user_has_notification.py | ||