From: michaelbautin (@michaelbautin) <noreply+michaelbautin@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: [pgvector/pgvector] issue #745: Automate estimation of amount of memory needed for fast HNSW index build
Date: Tue, 31 Dec 2024 03:08:43 +0000
Message-ID: <gh-pgvector-pgvector-745@github.com> (raw)
It would be very useful to have a function that would estimate, for a particular combination of vector data type, dimensionality, number of rows, and the value of M, the minimum amount of memory (as represented by maintenance_work_mem) necessary to build the HNSW index fully in memory. In many cases, users would like to avoid the case of spilling the index to disk at build time altogether, because that often slows down the index build too much.