From 4c64ed303c682b370db9227c65176d807ee0359f Mon Sep 17 00:00:00 2001 From: Suraj Patil <31805557+patilsuraj767@users.noreply.github.com> Date: Mon, 25 Sep 2023 14:45:50 +0530 Subject: [PATCH] Added index for workload_metrics (#130) --- migrations/000010_create_worload_metrics_index.down.sql | 1 + migrations/000010_create_worload_metrics_index.up.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 migrations/000010_create_worload_metrics_index.down.sql create mode 100644 migrations/000010_create_worload_metrics_index.up.sql diff --git a/migrations/000010_create_worload_metrics_index.down.sql b/migrations/000010_create_worload_metrics_index.down.sql new file mode 100644 index 00000000..f548e37f --- /dev/null +++ b/migrations/000010_create_worload_metrics_index.down.sql @@ -0,0 +1 @@ +DROP INDEX IF EXISTS idx_workload_metrics_workload_id_interval_end; diff --git a/migrations/000010_create_worload_metrics_index.up.sql b/migrations/000010_create_worload_metrics_index.up.sql new file mode 100644 index 00000000..11eb4746 --- /dev/null +++ b/migrations/000010_create_worload_metrics_index.up.sql @@ -0,0 +1 @@ +CREATE INDEX IF NOT EXISTS idx_workload_metrics_workload_id_interval_end ON workload_metrics(workload_id, interval_end);