From 7236137ba726a4b75e5981fa6aafceee56f2191c Mon Sep 17 00:00:00 2001 From: davidvanleeuwen Date: Tue, 27 Feb 2024 09:56:29 +0100 Subject: [PATCH] Add index for session aggregation materialized view --- .../20240227085109_add_index_for_daily_session_view.exs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 server/priv/repo/migrations/20240227085109_add_index_for_daily_session_view.exs diff --git a/server/priv/repo/migrations/20240227085109_add_index_for_daily_session_view.exs b/server/priv/repo/migrations/20240227085109_add_index_for_daily_session_view.exs new file mode 100644 index 0000000..82a0939 --- /dev/null +++ b/server/priv/repo/migrations/20240227085109_add_index_for_daily_session_view.exs @@ -0,0 +1,7 @@ +defmodule MaveMetrics.Repo.Migrations.AddIndexForDailySessionView do + use Ecto.Migration + + def change do + excute("CREATE INDEX ON daily_session_aggregation (video_id, session_date)") + end +end