From 8765e79ec2e2e59a524171ae2aa622d8a18789cd Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Thu, 25 Jan 2024 13:32:35 -0800 Subject: [PATCH] Added note about max_parallel_maintenance_workers for HNSW [skip ci] --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index c6d02e7..d2e6f36 100644 --- a/README.md +++ b/README.md @@ -264,6 +264,14 @@ HINT: Increase maintenance_work_mem to speed up builds. Note: Do not set `maintenance_work_mem` so high that it exhausts the memory on the server +Starting with 0.6.0 [unreleased], you can also speed up index creation by increasing the number of parallel workers (2 by default) + +```sql +SET max_parallel_maintenance_workers = 7; -- plus leader +``` + +For a large number of workers, you may also need to increase `max_parallel_workers` (8 by default) + ### Indexing Progress Check [indexing progress](https://www.postgresql.org/docs/current/progress-reporting.html#CREATE-INDEX-PROGRESS-REPORTING) with Postgres 12+