pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: iamsabhoho (@iamsabhoho) <noreply+iamsabhoho@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #500: Index Build Time Does Not Improve as Expected When Changing "Workers"
Date: Fri, 22 Mar 2024 23:23:48 +0000
Message-ID: <gh-pgvector-pgvector-500@github.com> (raw)

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. 

view thread (32+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-500@github.com>
Permalink:  ../gh-pgvector-pgvector-500@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox