瀏覽代碼

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 年之前
父節點
當前提交
3d714f85a8
共有 1 個檔案被更改,包括 7 行新增0 行删除
  1. +7
    -0
      priv/repo/migrations/20170620095947_remove_activities_index.exs

+ 7
- 0
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

Loading…
取消
儲存