mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-11 23:26:55 +08:00
Added todo [skip ci]
This commit is contained in:
@@ -256,8 +256,12 @@ RepairGraphEntryPoint(HnswVacuumState * vacuumstate)
|
|||||||
HnswElement entryPoint;
|
HnswElement entryPoint;
|
||||||
MemoryContext oldCtx = MemoryContextSwitchTo(vacuumstate->tmpCtx);
|
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 */
|
/* Repair graph for highest non-entry point */
|
||||||
/* This may not be the highest with new inserts, but should be fine */
|
|
||||||
if (BlockNumberIsValid(highestPoint->blkno))
|
if (BlockNumberIsValid(highestPoint->blkno))
|
||||||
{
|
{
|
||||||
HnswLoadElement(highestPoint, NULL, NULL, index, vacuumstate->procinfo, vacuumstate->collation, true);
|
HnswLoadElement(highestPoint, NULL, NULL, index, vacuumstate->procinfo, vacuumstate->collation, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user