pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
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.
![benchmark3_995](https://github.com/user-attachments/assets/da099719-f968-42c2-95b7-114be70d2cb5)
![benchmark3_995](https://github.com/user-attachments/assets/b57daf2a-2bcb-4250-96d0-37e568afd0e0)
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.

view thread (46+ messages)  latest in thread

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