pgvector.git / summary / log / commit / refs
commit ef480ff0b995af1f459a202294f6047b177b79bd
Author: Andrew Kane <andrew@ankane.org>
Date: Mon Aug 14 00:22:25 2023 +0000
Added comment [skip ci]
src/hnswinsert.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/hnswinsert.c b/src/hnswinsert.c
index b397941a..e20a041f 100644
--- a/src/hnswinsert.c
+++ b/src/hnswinsert.c
@@ -311,6 +311,13 @@ UpdateNeighborPages(Relation index, FmgrInfo *procinfo, Oid collation, HnswEleme
/* Do not lock yet since selecting neighbors can take time */
HnswLoadNeighbors(hc->element, index);
+ /*
+ * Could improve performance for vacuuming by checking neighbors
+ * against list of elements being deleted. It's important to
+ * exclude already deleted elements for this since they can be
+ * replaced at any time.
+ */
+
/* Select neighbors */
HnswUpdateConnection(e, hc, lm, lc, &idx, index, procinfo, collation);
[parent: e1d6654063b6]