From 7b56c342ad5e7ca8889b718fbaf9210f8abe116f Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Mon, 18 Sep 2023 13:43:33 +0000 Subject: [PATCH] modules: services: paperless: beef-up workers This should parallelize the number of documents ingested at once (workers), as well as the speed of the ingestion per document (threads). --- modules/services/paperless/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/services/paperless/default.nix b/modules/services/paperless/default.nix index c9d6220..1ca1f66 100644 --- a/modules/services/paperless/default.nix +++ b/modules/services/paperless/default.nix @@ -73,6 +73,10 @@ in # OCR settings PAPERLESS_OCR_LANGUAGE = "fra+eng"; + # Workers + PAPERLESS_TASK_WORKERS = 3; + PAPERLESS_THREADS_PER_WORKER = 4; + # Misc PAPERLESS_TIME_ZONE = config.time.timeZone; PAPERLESS_ADMIN_USER = cfg.username;