mirror of
https://github.com/pgvector/pgvector.git
synced 2026-06-30 01:31:15 +08:00
Removed eager loading of neighbors for better performance [skip ci]
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user