pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: jkatz (@jkatz) <noreply+jkatz@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #642: Search with IVF and HNSW indexes
Date: Wed, 14 Aug 2024 16:17:21 +0000
Message-ID: <gh-pgvector-pgvector-642-c2289227366@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-642@github.com>
References: <gh-pgvector-pgvector-642@github.com>

@xcu It depends on what PostgreSQL determines is the cost of the scan, which involves many factors (dataset size, selectivity, index search parameters).

If you want to force a particular index to be scanned, you would either want to use a single index, or you can use an extension like [https://github.com/ossc-db/pg_hint_plan](https://github.com/ossc-db/pg_hint_plan) to provide hints.

What would be the use case to have both index types on the same table simultaneously?

view thread (5+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-642-c2289227366@github.com>
Permalink:  ../gh-pgvector-pgvector-642-c2289227366@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox