Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
3d714f85a8
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. +7
    -0
      priv/repo/migrations/20170620095947_remove_activities_index.exs

+ 7
- 0
priv/repo/migrations/20170620095947_remove_activities_index.exs Näytä tiedosto

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

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

Loading…
Peruuta
Tallenna