From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #642: Search with IVF and HNSW indexes
Date: Sat, 17 Aug 2024 21:46:15 +0000
Message-ID: <gh-pgvector-pgvector-642-c2294994126@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-642@github.com>
References: <gh-pgvector-pgvector-642@github.com>
Hi @xcu, I'd expect that approach to work as long as the IVFFlat index isn't on the parent table (otherwise, you won't be able to drop them independently). In any case, I'd test this with an offline instance first (also, if you're doing any filtering in the queries, note that you may see differences between HNSW and IVFFlat).
As @jkatz mentioned, you can use `pg_hint_plan` for more control over which index is used.