pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
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!

view thread (3+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-689@github.com>
Permalink:  ../gh-pgvector-pgvector-689@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