Optimize conversation fetching.

This commit is contained in:
Roger Braun 2017-09-12 13:48:48 +02:00
commit 07b694814e
2 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,8 @@
defmodule Pleroma.Repo.Migrations.AddContextIndex do
use Ecto.Migration
@disable_ddl_transaction true
def change do
create index(:activities, ["(data->>'type')", "(data->>'context')"], name: :activities_context_index, concurrently: true)
end
end