diff options
author | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2021-08-28 16:11:52 +0000 |
---|---|---|
committer | Haelwenn <contact+git.pleroma.social@hacktivis.me> | 2021-08-28 16:11:52 +0000 |
commit | 689a59f41f265c08f1aae9784b05747811956775 (patch) | |
tree | 08a380bc1a86615f4aee856a839104c1653cba04 /lib | |
parent | 26abe96abfc9a9035c6d48441978519f199437b9 (diff) | |
parent | 4b940e441a4d89c403395b792dd2f806fc80db03 (diff) | |
download | pleroma-689a59f41f265c08f1aae9784b05747811956775.tar.gz pleroma-689a59f41f265c08f1aae9784b05747811956775.zip |
Merge branch 'set_text_search_config_timeout' into 'develop'
mix pleroma.database set_text_search_config now runs concurrently and infinitely
See merge request pleroma/pleroma!3514
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mix/tasks/pleroma/database.ex | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/mix/tasks/pleroma/database.ex b/lib/mix/tasks/pleroma/database.ex index 57f73d12b..a973beaa9 100644 --- a/lib/mix/tasks/pleroma/database.ex +++ b/lib/mix/tasks/pleroma/database.ex @@ -209,7 +209,9 @@ defmodule Mix.Tasks.Pleroma.Database do new.fts_content := to_tsvector(new.data->>'content'); RETURN new; END - $$ LANGUAGE plpgsql" + $$ LANGUAGE plpgsql", + [], + timeout: :infinity ) shell_info("Refresh RUM index") @@ -219,7 +221,9 @@ defmodule Mix.Tasks.Pleroma.Database do Ecto.Adapters.SQL.query!( Pleroma.Repo, - "CREATE INDEX objects_fts ON objects USING gin(to_tsvector('#{tsconfig}', data->>'content')); " + "CREATE INDEX CONCURRENTLY objects_fts ON objects USING gin(to_tsvector('#{tsconfig}', data->>'content')); ", + [], + timeout: :infinity ) end |