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.
This commit is contained in:
parent
1e6491ec96
commit
3d714f85a8
|
@ -0,0 +1,7 @@
|
||||||
|
defmodule Pleroma.Repo.Migrations.RemoveActivitiesIndex do
|
||||||
|
use Ecto.Migration
|
||||||
|
|
||||||
|
def change do
|
||||||
|
drop index(:activities, [:data])
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue