pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: mgoldenbe (@mgoldenbe) <noreply+mgoldenbe@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #259: Understanding HNSW + filtering
Date: Wed, 25 Oct 2023 12:44:39 +0000
Message-ID: <gh-pgvector-pgvector-259-c1779196292@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-259@github.com>
References: <gh-pgvector-pgvector-259@github.com>

@jkatz 

> To look up from both indexes at the same time, pgvector would have to add support for bitmap scans in `hnsw`.

Why not simply force the desired behavior in the query itself by using a subquery in `FROM`? For example, the subquery might compute the table filtered using the regular index, while the outer query would operate on the filtered table. 

If this approach works, does it still require a separate partial index for each category or would it work even with a single full index?

view thread (90+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-259-c1779196292@github.com>
Permalink:  ../gh-pgvector-pgvector-259-c1779196292@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