pgvector.git / summary / log / commit / refs
commit 3c291fea41fe42f04264dca1f3867113be46a00e
Author: Andrew Kane <andrew@ankane.org>
Date: Sat Aug 12 19:41:02 2023 +0000
Added todo [skip ci]
src/hnswvacuum.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/hnswvacuum.c b/src/hnswvacuum.c
index b9f7aa0d..e59c03d0 100644
--- a/src/hnswvacuum.c
+++ b/src/hnswvacuum.c
@@ -256,8 +256,12 @@ RepairGraphEntryPoint(HnswVacuumState * vacuumstate)
HnswElement entryPoint;
MemoryContext oldCtx = MemoryContextSwitchTo(vacuumstate->tmpCtx);
+ /*
+ * TODO Look for newer highest point. Outdated point works, but can remove
+ * connections at higher levels in the graph, which is not ideal.
+ */
+
/* Repair graph for highest non-entry point */
- /* This may not be the highest with new inserts, but should be fine */
if (BlockNumberIsValid(highestPoint->blkno))
{
HnswLoadElement(highestPoint, NULL, NULL, index, vacuumstate->procinfo, vacuumstate->collation, true);
[parent: 3d568ef6a152]