From: VladlenPopolitov (@VladlenPopolitov) <noreply+VladlenPopolitov@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #678: Iterative index scans
Date: Tue, 24 Sep 2024 13:02:54 +0000
Message-ID: <gh-pgvector-pgvector-678-c2371213407@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-678@github.com>
References: <gh-pgvector-pgvector-678@github.com>
@hlinnaka PR #524 saves all visited tuples to priority queue (w queue) and continues the search (candidates queue). gettuple returns the best candidate from these 2 queues.
I did benchmark yesterday, all approaches shows relatively same performance, though hnsw-streaming is slightly better.


First chart for dataset with 10 filter values, second chart - with 100 filter values. Standard hnsw version shows low recall and did not appear on second chart. It is not strict benchmark, it is fast evaluation.
iterate and iterate_strict = #282
relaxed = #524
streaming - hnsw_streaming branch
std - pgvector hnsw without streaming
iterate_strict is no slow, it decreases recall (moved line to left on chart)to keep strict order. The performance comparable for all approaches.