Removed eager loading of neighbors for better performance [skip ci]

This commit is contained in:
Andrew Kane
2023-08-01 21:36:04 -07:00
parent f3bd7c30d4
commit fae2b445d6

View File

@@ -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);
}