We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent103ac50 commitbb855e6Copy full SHA for bb855e6
src/hnswinsert.c
@@ -379,8 +379,12 @@ HnswUpdateNeighborsOnDisk(Relation index, FmgrInfo *procinfo, Oid collation, Hns
379
HnswElementneighborElement=HnswPtrAccess(base,hc->element);
380
OffsetNumberoffno=neighborElement->neighborOffno;
381
382
-/* Get latest neighbors since they may have changed */
383
-/* Do not lock yet since selecting neighbors can take time */
+/*
+ * Get latest neighbors since they may have changed. Do not lock
384
+ * yet since selecting neighbors can take time. Could use
385
+ * optimistic locking to retry if another update occurs before
386
+ * getting exclusive lock.
387
+ */
388
HnswLoadNeighbors(neighborElement,index,m);
389
390
/*