Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
62ca2617
Commit
62ca2617
authored
Sep 17, 2017
by
lain
Browse files
Add tag index.
This still isn't optimal, but at least it isn't super slow.
parent
6000f617
Changes
1
Hide whitespace changes
Inline
Side-by-side
priv/repo/migrations/20170917120416_add_tag_index.exs
0 → 100644
View file @
62ca2617
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment