pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
From: jitokim (@jitokim) <noreply+jitokim@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] PR #1026: HNSW: don't rewind insertPage to deleted slots that cannot fit the element
Date: Thu, 15 Oct 2026 13:49:45 +0000
Message-ID: <gh-pgvector-pgvector-1026-c6193671993@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-1026@github.com>
References: <gh-pgvector-pgvector-1026@github.com>

Tried the branch at 9b91f2d with the tests from this PR on PG 16.10. 038, 049 and 050 pass. In 049 a repeat large insert after VACUUM is back to 1,857 buffers (1,866 after a small insert, baseline 1,849, master 9,324), and 050 shows no index growth.

The only case I could still make slow is a contrived one: 20k rows at nnz=100, delete just the level >= 1 elements, VACUUM, then insert nnz=155. None of the freed slots fit, so the insert reads close to the whole index (2,867 reads on 2,859 pages, 4 of 5 seeds). insertPage stays put now, so it doesn't get worse over time. Not sure it's worth handling.

Closing this one in favor of the branch is fine with me.


view thread (14+ messages)  latest in thread

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