From fae2b445d63cf70192159fcc167ea8f93c5138ad Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 1 Aug 2023 21:36:04 -0700 Subject: [PATCH] Removed eager loading of neighbors for better performance [skip ci] --- src/hnswutils.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/hnswutils.c b/src/hnswutils.c index 8669830..20b040e 100644 --- a/src/hnswutils.c +++ b/src/hnswutils.c @@ -456,10 +456,6 @@ HnswLoadElement(HnswElement element, float *distance, Datum *q, Relation index, if (distance != NULL) *distance = (float) DatumGetFloat8(FunctionCall2Coll(procinfo, collation, *q, PointerGetDatum(&etup->vec))); - /* Load neighbors if on same page */ - if (element->neighborPage == element->blkno) - LoadNeighborsFromPage(element, index, page); - UnlockReleaseBuffer(buf); }