From: bantmen (@bantmen) <noreply+bantmen@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #689: HNSW partial index build?
Date: Tue, 01 Oct 2024 15:42:24 +0000
Message-ID: <gh-pgvector-pgvector-689@github.com> (raw)
I am trying to build an HNSW index over ~18m vectors with `maintenance_work_mem` set to 32gb. Even at lower `ef_construction`, I am getting the memory pressure warning at `6524826 tuples` with the indexing getting stuck at 38%. I considered using `halfvec` but even then the memory fall short.
Is it possible to partially build the HNSW index somehow so that I can alleviate the RAM needs? I am trying not to increase the RAM because I'd keep having to do that given that this database size will go up to 100m vectors.
Open to suggestions - thanks!