Skip to content

feat(spann): add automatic dynamic layer growth and shrinking - #477

Open
Qianxi Zhang (zqxjjj) wants to merge 2 commits into
users/qiazh/pre-merge-tikv-bugfixfrom
users/qiazh/dynamic-layers-squashed
Open

Qianxi Zhang (zqxjjj) wants to merge 2 commits into
users/qiazh/pre-merge-tikv-bugfixfrom
users/qiazh/dynamic-layers-squashed

Conversation

@zqxjjj

@zqxjjj Qianxi Zhang (zqxjjj) commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Add automatic SPANN layer growth and shrinking, preserving ordinary merge and reassignment. Includes tests, SIFT lifecycle tooling and documentation.

Consolidate dynamic layer growth, threshold-driven shrinking, FILEIO and TiKV support, regression coverage, real-SIFT lifecycle tooling, and related documentation.

Preserve the exact final tree of 785e060644f382efdddc715b3bcd79ed06e8e29c. Ordinary merge and reassignment remain in use. The small real-SIFT run observed automatic 1-to-2-to-1 and deletion/reload Recall@5 of 0.9907, but timed out during post-reload cleanup; the 5M deletion lifecycle also timed out and is not accepted.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add an explicit per-phase timeout override, with zero disabling only the outer wall-clock deadline. Preserve resource guards and existing internal deadlines; cover unlimited execution, explicit limits and disk protection.

Record the full 4.5M-to-5.5M-to-4.5M ordinary-merge32 lifecycle: all deletion batches completed in a roughly 19h47m formal run, final Recall@5 was 0.96430/0.96424, but the 15-minute convergence window ended at two layers and exit201. Shrinking and final reload are not accepted. Keep generated indexes and raw logs out of Git. All 13 focused Python tests passed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant