oncall-engine/engine/apps/alerts/tasks
Joey Orlando 77f6dedce5
add index on started_at column in alert groups (#2516)
# 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)
2023-07-13 05:22:59 -04:00
..
__init__.py remove deprecated backend code (#2502) 2023-07-12 02:07:45 -04:00
acknowledge_reminder.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
alert_group_web_title_cache.py Improve Jinja Template feedback and error handling (#884) 2022-11-28 09:46:51 -07:00
call_ack_url.py Lint 2022-08-02 15:26:17 -06:00
check_escalation_finished.py add index on started_at column in alert groups (#2516) 2023-07-13 05:22:59 -04:00
compare_escalations.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
create_contact_points_for_datasource.py Refactor create/update contact points for Alerting integration (#872) 2023-01-25 09:42:42 +01:00
custom_button_result.py Handle JSONDecodeError for outgoing webhooks (#460) 2022-09-01 14:36:34 +01:00
custom_webhook_result.py Add escalation chain support for new webhooks (#1654) 2023-04-05 12:03:55 +00:00
delete_alert_group.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
distribute_alert.py remove organization maintenance mode + fix integration maintenance mode (#2511) 2023-07-12 16:41:44 -04:00
escalate_alert_group.py continue addressing mypy violations (#2170) 2023-06-27 10:23:08 +00:00
invite_user_to_join_incident.py Refactor get_user_verbal_for_team_for_slack. (#809) 2023-03-07 10:09:37 +00:00
maintenance.py remove organization maintenance mode + fix integration maintenance mode (#2511) 2023-07-12 16:41:44 -04:00
notify_all.py Fix the cause of retry of notify_all and notify_group tasks (#1376) 2023-02-23 09:28:13 +00:00
notify_group.py Fix the cause of retry of notify_all and notify_group tasks (#1376) 2023-02-23 09:28:13 +00:00
notify_ical_schedule_shift.py Exclude schedules from deleted organizations from notification list (#2493) 2023-07-11 10:32:10 +00:00
notify_user.py Add "user_was_notified_of_alert_groups" metric (#2334) 2023-06-28 08:15:19 +00:00
resolve_alert_group_by_source_if_needed.py remove deprecated backend code (#2502) 2023-07-12 02:07:45 -04:00
resolve_by_last_step.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
send_alert_group_signal.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
send_update_log_report_signal.py remove organization maintenance mode + fix integration maintenance mode (#2511) 2023-07-12 16:41:44 -04:00
send_update_resolution_note_signal.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
sync_grafana_alerting_contact_points.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
task_logger.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
unsilence.py OnCall prometheus metrics exporter (#1605) 2023-05-25 18:26:13 +00:00
wipe.py World, meet OnCall! 2022-06-03 08:09:47 -06:00