From b56bb88c02dcbbc16ca3f861df5d5e09828fc56a Mon Sep 17 00:00:00 2001 From: lain Date: Tue, 27 Mar 2018 19:48:01 +0200 Subject: [PATCH] Drop index for 'local', it confuses the query planner. --- .../20180327174350_drop_local_index_on_activities.exs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 priv/repo/migrations/20180327174350_drop_local_index_on_activities.exs diff --git a/priv/repo/migrations/20180327174350_drop_local_index_on_activities.exs b/priv/repo/migrations/20180327174350_drop_local_index_on_activities.exs new file mode 100644 index 000000000..70f2c9fe6 --- /dev/null +++ b/priv/repo/migrations/20180327174350_drop_local_index_on_activities.exs @@ -0,0 +1,7 @@ +defmodule Pleroma.Repo.Migrations.DropLocalIndexOnActivities do + use Ecto.Migration + + def change do + drop index(:users, [:local]) + end +end -- 2.45.2