From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #434: Limit HNSW build's shared memory size for small tables
Date: Tue, 20 Feb 2024 22:49:51 +0000
Message-ID: <gh-pgvector-pgvector-434-c1955249240@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-434@github.com>
References: <gh-pgvector-pgvector-434@github.com>
Thanks for working on getting that fixed.
I'm a bit hesitant to make a big change like this. Creating a large segment doesn't seem to immediately show up in memory usage, so I'm not sure of the actual impact to the system (but don't have a great understanding of it).
My main concern (besides the overhead) is code complexity. The current diff has a lot of changes. If there's a way to do this with very little changes outside of the pointer macros (and changing the type of `base`), this would be less of a concern.