From 3d714f85a86010348a0cbfc76e399b44bb5d8499 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Tue, 20 Jun 2017 12:00:58 +0200 Subject: [PATCH] Drop the general index on activities. Indices should be more specific as the general index can lead to slower queries because postgres can't estimate the specificity of jsonb indexes very well. --- .../migrations/20170620095947_remove_activities_index.exs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 priv/repo/migrations/20170620095947_remove_activities_index.exs diff --git a/priv/repo/migrations/20170620095947_remove_activities_index.exs b/priv/repo/migrations/20170620095947_remove_activities_index.exs new file mode 100644 index 000000000..85feabeeb --- /dev/null +++ b/priv/repo/migrations/20170620095947_remove_activities_index.exs @@ -0,0 +1,7 @@ +defmodule Pleroma.Repo.Migrations.RemoveActivitiesIndex do + use Ecto.Migration + + def change do + drop index(:activities, [:data]) + end +end