From a524673faffac5871e207091a60b25c27b4539ea Mon Sep 17 00:00:00 2001 From: Christian Stefanescu Date: Fri, 24 Jan 2025 17:30:51 +0100 Subject: [PATCH] bugfix: Point out use of Tags db and how it works ingest-file uses the Tags functionality from servicelayer to cache certain document types during ingest to speed up its operation. Normally the settings file defaults to trying the ALEPH_DATABASE_URI followed by the FTM_STORE_URI, which in most cases should be set to non-default values. But if one were to just follow our prod environment docs blindly and not uncomment these two settings then the TAGS_DATABASE_URI would be unset, causing servicelayer to pick the default (sqlite:///) which breaks now that we have multiple threads writing to the tags database. This change documents how this setting works and encourages one to set it if the above two settings are left to defaults. Relates to #4002, #3816 --- aleph.env.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aleph.env.tmpl b/aleph.env.tmpl index 58baddfc53..5962212412 100644 --- a/aleph.env.tmpl +++ b/aleph.env.tmpl @@ -91,6 +91,10 @@ ALEPH_OAUTH_SECRET= # Define a different ftm entity store: # FTM_STORE_URI=postgresql://:@/ +# ingest-file uses a document cache to speed up operations +# (it defaults to either one of the two above postgres connection strings) +# TAGS_DATABASE_URI=postgresql://:@/ + # Queue mechanism # REDIS_URL=redis://redis:6379/0 # RABBITMQ_URL=rabbitmq