From: Roger Braun Date: Tue, 20 Jun 2017 10:00:58 +0000 (+0200) Subject: Drop the general index on activities. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=3d714f85a86010348a0cbfc76e399b44bb5d8499;p=akkoma 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. --- 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