From: ankane (@ankane) <noreply+ankane@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] PR #1020: Prefetch unvisited neighbors during HNSW search
Date: Sun, 18 Oct 2026 08:22:23 +0000
Message-ID: <gh-pgvector-pgvector-1020-c6247586423@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-1020@github.com>
References: <gh-pgvector-pgvector-1020@github.com>
Added prefetching for Postgres < 19 to the [hnsw-read-stream4 branch](https://github.com/pgvector/pgvector/compare/hnsw-read-stream4). It might be possible to improve performance by using `PrefetchBufferResult`.
Re look-ahead: I don't think it's a good idea to perform unnecessary prefetches since other queries could use the resources instead.