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: Sat, 28 Oct 2023 17:08:13 +0000
Message-ID: <gh-pgvector-pgvector-259-c1783872804@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-259@github.com>
References: <gh-pgvector-pgvector-259@github.com>
@jkatz
You did not mention [table partitioning](https://github.com/pgvector/pgvector#filtering) in your answer here. If I understand correctly, if the table uses *list partitioning* on the `category_id` column, then the condition `WHERE category_id = 3` will cause it to only consult the HNSW index for that partition. Doesn't this completely solve the problem?