From: mauriciocirelli (@mauriciocirelli) <noreply+mauriciocirelli@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #259: Understanding HNSW + filtering
Date: Wed, 08 May 2024 15:27:25 +0000
Message-ID: <gh-pgvector-pgvector-259-c2100843635@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-259@github.com>
References: <gh-pgvector-pgvector-259@github.com>
I totally agree with you. I cannot rely on the same query plan for every query at any point in the future.
What I am trying to understand is the behavior of the LIMIT clause. Why do I get 10 results in one scenario and only 3 on another, using the very same query and very same data?
We cannot rely on the plan being the same all the time, but I would expect that least that the results would be the same. In my understanding, different plans leads to different performance, but not to different results.