aboutsummaryrefslogtreecommitdiff
path: root/docs/config.md
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-05-17 16:35:19 +0000
committerrinpatch <rinpatch@sdf.org>2019-05-17 16:35:19 +0000
commitd2dacadb6b223449d8eab3d7a32e29da9f2adde7 (patch)
tree7adf28be34051ad87eaf72e10595a4249604992b /docs/config.md
parente5b34f5e0544371603bc2b570c26ede3182c2f8b (diff)
parentef63cf70883f4c7e3814ebac907f000da835ea10 (diff)
downloadpleroma-d2dacadb6b223449d8eab3d7a32e29da9f2adde7.tar.gz
Merge branch 'rum-index' into 'develop'
Search: Use RUM index. See merge request pleroma/pleroma!1136
Diffstat (limited to 'docs/config.md')
-rw-r--r--docs/config.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/config.md b/docs/config.md
index c2af5c012..450d73fda 100644
--- a/docs/config.md
+++ b/docs/config.md
@@ -544,3 +544,18 @@ Configure OAuth 2 provider capabilities:
* `shortcode_globs`: Location of custom emoji files. `*` can be used as a wildcard. Example `["/emoji/custom/**/*.png"]`
* `groups`: Emojis are ordered in groups (tags). This is an array of key-value pairs where the key is the groupname and the value the location or array of locations. `*` can be used as a wildcard. Example `[Custom: ["/emoji/*.png", "/emoji/custom/*.png"]]`
* `default_manifest`: Location of the JSON-manifest. This manifest contains information about the emoji-packs you can download. Currently only one manifest can be added (no arrays).
+
+## Database options
+
+### RUM indexing for full text search
+* `rum_enabled`: If RUM indexes should be used. Defaults to `false`.
+
+RUM indexes are an alternative indexing scheme that is not included in PostgreSQL by default. While they may eventually be mainlined, for now they have to be installed as a PostgreSQL extension from https://github.com/postgrespro/rum.
+
+Their advantage over the standard GIN indexes is that they allow efficient ordering of search results by timestamp, which makes search queries a lot faster on larger servers, by one or two orders of magnitude. They take up around 3 times as much space as GIN indexes.
+
+To enable them, both the `rum_enabled` flag has to be set and the following special migration has to be run:
+
+`mix ecto.migrate --migrations-path priv/repo/optional_migrations/rum_indexing/`
+
+This will probably take a long time.