pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: knizhnik (@knizhnik) <noreply+knizhnik@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] PR #282: Hnsw iterator
Date: Tue, 24 Sep 2024 11:26:51 +0000
Message-ID: <gh-pgvector-pgvector-282-c2370994884@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-282@github.com>
References: <gh-pgvector-pgvector-282@github.com>

> Hi @knizhnik, thanks again for the PR (and kicking off this discussion). Have been spending time on this area lately and think I've found an approach that works well with vacuuming (#678). Let me know if you have any thoughts.

Hi
Do I correctly understand the the main idea of your approach is used batching for layer 0 to improve access locality?
But still I do not completely understand it's relation with vacuuming... When heap is updated, index bloating may take place, i.e. index will contain at lot of entries to dead tuples. It can cause problems with top-k search algorithm, because selected tuples may be rejected later by MVCC visibility. Certainly HNSW iterator can solve this problem. But I do not understand why your approach better deals with vacuuming.
 

view thread (33+ messages)  latest in thread

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