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:39:27 +0000
Message-ID: <gh-pgvector-pgvector-259-c1779184736@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-259@github.com>
References: <gh-pgvector-pgvector-259@github.com>
@Palmik
> Partial index on all possible categories is also unfortunately not feasible
I have similar requirements, whereby search needs to be conducted only on documents belonging to a particular user. Why might it not be feasible to automatically create an index whenever a new user joins (or a new category is created in your case)?
In my own case, the difficulty is that users can share documents, so I have a separate table for storing documents and a separate table for storing ownership information, i.e. `(<user id>,<document id>)` pairs.