mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-10 14:46:56 +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)
|
if (distance != NULL)
|
||||||
*distance = (float) DatumGetFloat8(FunctionCall2Coll(procinfo, collation, *q, PointerGetDatum(&etup->vec)));
|
*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);
|
UnlockReleaseBuffer(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user