A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
feat(workers): raise default search worker concurrency to 50
Mohamed Bassem123893ecb9a6
diff --git a/docs/docs/03-configuration/01-environment-variables.md b/docs/docs/03-configuration/01-environment-variables.mdindex 100b84d5..ffd4030e 100644--- a/docs/docs/03-configuration/01-environment-variables.md+++ b/docs/docs/03-configuration/01-environment-variables.md@@ -23,7 +23,7 @@ The app is mainly configured by environment variables. All the used environment| CRAWLER_DOMAIN_RATE_LIMIT_WINDOW_MS | No | Not set | Time window in milliseconds for per-domain crawler rate limiting. || CRAWLER_DOMAIN_RATE_LIMIT_MAX_REQUESTS | No | Not set | Maximum crawler requests allowed per domain inside the configured window. || DB_WAL_MODE | No | false | Enables WAL mode for the sqlite database. This should improve the performance of the database. There's no reason why you shouldn't set this to true unless you're running the db on a network attached drive. This will become the default at some time in the future. |-| SEARCH_NUM_WORKERS | No | 1 | Number of concurrent workers for search indexing tasks. Increase this if you have a high volume of content being indexed for search. |+| SEARCH_NUM_WORKERS | No | 50 | Number of concurrent workers for search indexing tasks. Increase this if you have a high volume of content being indexed for search. || SEARCH_JOB_TIMEOUT_SEC | No | 30 | How long to wait for a search indexing job to finish before timing out. Increase this if you have large bookmarks with extensive content that takes longer to index. || WEBHOOK_NUM_WORKERS | No | 1 | Number of concurrent workers for webhook delivery. Increase this if you have multiple webhook endpoints or high webhook traffic. || ASSET_PREPROCESSING_NUM_WORKERS | No | 1 | Number of concurrent workers for asset preprocessing tasks (image processing, OCR, etc.). Increase this if you have many images or documents that need processing. |diff --git a/packages/shared/config.ts b/packages/shared/config.tsindex 7e607f33..f23c1566 100644--- a/packages/shared/config.ts+++ b/packages/shared/config.ts@@ -138,7 +138,7 @@ const allEnv = z.object({.optional(),CRAWLER_NUM_WORKERS: z.coerce.number().default(1),INFERENCE_NUM_WORKERS: z.coerce.number().default(1),- SEARCH_NUM_WORKERS: z.coerce.number().default(1),+ SEARCH_NUM_WORKERS: z.coerce.number().default(50),SEARCH_JOB_TIMEOUT_SEC: z.coerce.number().default(30),WEBHOOK_NUM_WORKERS: z.coerce.number().default(1),ASSET_PREPROCESSING_NUM_WORKERS: z.coerce.number().default(1),