From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #335: How often if at all re-indexing needs to be done?
Date: Wed, 20 Dec 2023 01:26:18 +0000
Message-ID: <gh-pgvector-pgvector-335-c1863698895@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-335@github.com>
References: <gh-pgvector-pgvector-335@github.com>
Hi @JadenGeller, pgvector doesn't use either of those deletion policies. On vacuum, it updates connections for each live element by seeing what the connections would be if the element was freshly inserted. Check out [hnswvacuum.c](https://github.com/pgvector/pgvector/blob/master/src/hnswvacuum.c) for the full approach.