Skip to content
Snippets Groups Projects
Commit 62ca2617 authored by lain's avatar lain
Browse files

Add tag index.

This still isn't optimal, but at least it isn't super slow.
parent 6000f617
Branches
Tags
No related merge requests found
defmodule Pleroma.Repo.Migrations.AddTagIndex do
use Ecto.Migration
@disable_ddl_transaction true
def change do
create index(:activities, ["(data #> '{\"object\",\"tag\"}')"], concurrently: true, using: :gin, name: :activities_tags)
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment