From: jkatz (@jkatz) <noreply+jkatz@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: Fri, 03 Nov 2023 12:12:02 +0000
Message-ID: <gh-pgvector-pgvector-335-c1792329959@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-335@github.com>
References: <gh-pgvector-pgvector-335@github.com>
I've been doing a lot of testing of HNSW on very large data sets (millions on up), and while it does take more time to insert a vector in an index that has hundreds of millions of vectors, thus far I have not seen any pressing need to re-index. However, I'd qualify that statement as this has been on either known test data sets or simulated vector data.
The HNSW implementation in pgvector also supports updates and deletes, so if you have a record that changes, it will be appropriately reindexed and cleaned up, so you don't have to rebuild it due to that reason.