mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-02 18:50:56 +08:00
Updated comment [skip ci]
This commit is contained in:
@@ -1058,8 +1058,12 @@ HnswInsertElement(HnswElement element, HnswElement entryPoint, Relation index, F
|
||||
else
|
||||
lw = w;
|
||||
|
||||
/* Candidates are sorted, but set sortCandidates to true */
|
||||
/* for in-memory builds to enable closer caching */
|
||||
/*
|
||||
* Candidates are sorted, but not deterministically. Set
|
||||
* sortCandidates to true for in-memory builds to enable closer
|
||||
* caching. Could alternatively skip caching here, but there does not
|
||||
* seem to be a difference in performance either way.
|
||||
*/
|
||||
neighbors = SelectNeighbors(lw, lm, lc, procinfo, collation, element, NULL, NULL, index == NULL);
|
||||
|
||||
AddConnections(element, neighbors, lm, lc);
|
||||
|
||||
Reference in New Issue
Block a user