pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: alanwli (@alanwli) <noreply+alanwli@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #244: HNSW + dead tuples: recall loss/usability issues
Date: Tue, 05 Sep 2023 21:57:49 +0000
Message-ID: <gh-pgvector-pgvector-244-c1707361002@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-244@github.com>
References: <gh-pgvector-pgvector-244@github.com>

Hi @ankane - thanks for looking into a solution for the problem. I agree with the discussion thus far that this is yet another speed vs. recall tradeoff, and it's likely many other ANN algorithms don't have to worry about since they don't care about transactional semantics. Do you have a sense how much overhead your kill_prior_tuple solution would incur?


> Hi @alanwli, I'm not sure there's a way to address this that doesn't affect search speed, but it may be worth the tradeoff. I've pushed a solution to [kill-prior-tuple](https://github.com/pgvector/pgvector/compare/kill-prior-tuple) branch, but need to think about it more. The two things that will affect search speed are:
> 
> 1. Marking tuples as deleted (since `scan->kill_prior_tuple` is the only way to get this information). We could limit this to a certain number per scan to minimize the impact.
> 2. Needing to search more tuples. This wouldn't be fixed until the graph is repaired with vacuum.



view thread (14+ messages)  latest in thread

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