Skip to content

Commit a524673

Browse files
committed
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
1 parent 84c7174 commit a524673

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: aleph.env.tmpl

+4
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ ALEPH_OAUTH_SECRET=
9191
# Define a different ftm entity store:
9292
# FTM_STORE_URI=postgresql://<username>:<password>@<host>/<database>
9393

94+
# ingest-file uses a document cache to speed up operations
95+
# (it defaults to either one of the two above postgres connection strings)
96+
# TAGS_DATABASE_URI=postgresql://<username>:<password>@<host>/<database>
97+
9498
# Queue mechanism
9599
# REDIS_URL=redis://redis:6379/0
96100
# RABBITMQ_URL=rabbitmq

0 commit comments

Comments
 (0)