Improved concurrent inserts with low number of elements

This commit is contained in:
Andrew Kane
2023-08-10 15:07:28 -07:00
parent 483173460b
commit a18bea24b8
2 changed files with 15 additions and 3 deletions

View File

@@ -818,7 +818,7 @@ HnswUpdateConnection(HnswElement element, HnswCandidate * hc, int m, int lc, int
/* Track update */
if (updateIdx != NULL)
*updateIdx = currentNeighbors->length - 1;
*updateIdx = -2;
}
else
{