Browse Source

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.
tags/v0.9.9
Roger Braun 7 years ago
parent
commit
3d714f85a8
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      priv/repo/migrations/20170620095947_remove_activities_index.exs

+ 7
- 0
priv/repo/migrations/20170620095947_remove_activities_index.exs View File

@@ -0,0 +1,7 @@
defmodule Pleroma.Repo.Migrations.RemoveActivitiesIndex do
use Ecto.Migration

def change do
drop index(:activities, [:data])
end
end

Loading…
Cancel
Save