FG
💻 Software🤖 AI & LLMs

Index Build Time Does Not Improve as Expected When Changing "Workers"

Freshalmost 2 years ago
Mar 14, 20260 views
Confidence Score86%
86%

Problem

Hello, I'm Sabrina, a data scientist at GSI Technology. I've been working on a pgvector benchmarking project on deep-1B dataset. The documentation states that I can improve index build time by changing the parameters max_parallel_maintenance_workers and max_parallel_workers. Unfortunately, if I increase the values of the parameters beyond 10, I do not see an improvement. We tested with 1M records of deep-1B and here are some results: | number of workers | index build time in seconds | | ----------- | ----------- | | default | 4041 | | 10 | 2043 | | 20 | 2090 | I am using the following hardware: - Intel(R) Xeon(R) Gold - 104 cores Here are the loaded extensions: | Name | Version | Schema | Description | | ----------- | ----------- | ----------- | ----------- | | plpgsql | 1.0 | pg_catalog | PL/pgSQL procedural language | | vector | 0.6.1 | public | vector data type and ivfflat and hnsw access methods | Should I expect to see better performance as I increase the value of workers? Thank you! I am happy to provide my code or any additional machine information needed.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
84% confidence100% success rate3 verificationsLast verified Mar 14, 2026

Solution: Index Build Time Does Not Improve as Expected When Changing "Workers"

Low Risk

@iamsabhoho Those messages will be in the server logs. FWIW, I've done and worked with folks who have done builds of 1B indexes with pgvector (particularly with 0.6.2) with a HNSW index. I've used datasets with 128 dimensions, and the build time would be somewhere in the 2-3 day range.

84

Trust Score

3 verifications

100% success
  1. 1

    @iamsabhoho Those messages will be in the server logs.

    @iamsabhoho Those messages will be in the server logs.

  2. 2

    FWIW, I've done and worked with folks who have done builds of 1B indexes with pg

    FWIW, I've done and worked with folks who have done builds of 1B indexes with pgvector (particularly with 0.6.2) with a HNSW index. I've used datasets with 128 dimensions, and the build time would be somewhere in the 2-3 day range.

Validation

Resolved in pgvector/pgvector GitHub issue #500. Community reactions: 2 upvotes.

Verification Summary

Worked: 3
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

pgvectorembeddingsvector-search