Disable closer caching for new elements for now

This commit is contained in:
Andrew Kane
2023-10-06 14:27:09 -07:00
parent 65e70326b8
commit 4b5db94307

View File

@@ -1059,12 +1059,11 @@ HnswInsertElement(HnswElement element, HnswElement entryPoint, Relation index, F
lw = w; lw = w;
/* /*
* Candidates are sorted, but not deterministically. Set * Candidates are sorted, but not deterministically. Could set
* sortCandidates to true for in-memory builds to enable closer * sortCandidates to true for in-memory builds to enable closer
* caching. Could alternatively skip caching here, but there does not * caching, but there does not seem to be a difference in performance.
* seem to be a difference in performance either way.
*/ */
neighbors = SelectNeighbors(lw, lm, lc, procinfo, collation, element, NULL, NULL, index == NULL); neighbors = SelectNeighbors(lw, lm, lc, procinfo, collation, element, NULL, NULL, false);
AddConnections(element, neighbors, lm, lc); AddConnections(element, neighbors, lm, lc);