mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-11 07:06:57 +08:00
Added comments [skip ci]
This commit is contained in:
@@ -307,11 +307,14 @@ UpdateNeighborPages(Relation index, FmgrInfo *procinfo, Oid collation, HnswEleme
|
|||||||
int startIdx;
|
int startIdx;
|
||||||
OffsetNumber offno = hc->element->neighborOffno;
|
OffsetNumber offno = hc->element->neighborOffno;
|
||||||
|
|
||||||
/* Get latest neighbors */
|
/* Get latest neighbors since they may have changed */
|
||||||
|
/* Do not lock yet since selecting neighbors can take time */
|
||||||
HnswLoadNeighbors(hc->element, index);
|
HnswLoadNeighbors(hc->element, index);
|
||||||
|
|
||||||
|
/* Select neighbors */
|
||||||
HnswUpdateConnection(e, hc, lm, lc, &idx, index, procinfo, collation);
|
HnswUpdateConnection(e, hc, lm, lc, &idx, index, procinfo, collation);
|
||||||
|
|
||||||
|
/* New element was not selected as a neighbor */
|
||||||
if (idx == -1)
|
if (idx == -1)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user