Repository navigation
Analysis: LanceDB indexing rulebook — nothing is automatic - #32
Merged
Merged
Conversation
The LanceDB counterpart of the LadybugDB query rulebook, documenting the same trap class: the API accepts naive usage and fails silently — here as latency/storage-cost, not wrong answers. - Three docs-grounded facts (OSS creates/updates no index on its own; new rows flat-scan as an unindexed tail until optimize(); every write is a fragment + version) and seven field failure archetypes, with illustrative cost arithmetic from the documented access patterns. - The rulebook (R1-R11) for future agents: index-set completeness as the schema review bar, scalar index types by cardinality, the mandatory dual-trigger optimize loop, ensure-indexes as an explicit verified operation, batching, prefilter posture, BM25 substring blindness, version retention, retry caps, and dev-vs-prod ANN semantics. - §4 binds the consequences for P1: the inline-write pattern makes the maintenance worker load-bearing, and the upcoming E1/P1 design must enumerate the per-table index set as part of the schema. - README index row alongside the LadybugDB rulebook. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This was referenced Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
plan/analysis/lance_indexing_maintenance.md— the LanceDB counterpart of the LadybugDB query rulebook (ladybug_query_semantics.md), covering the same failure class: the API accepts naive usage and fails silently — here as latency and storage-operations cost rather than wrong answers.Content
optimize()runs; every write commits a fragment + version.optimize()loop (unindexed rows ≥ N OR small fragments ≥ M); ensure-indexes as an explicit, idempotent,index_stats()-verified operation; batch writes; prefilter posture; BM25 substring blindness; version retention; retry caps; brute-force-is-exact vs ANN-is-approximate.p1_batch_rebuild/compaction worker is load-bearing, not hygiene; the upcoming E1/P1 design must enumerate the per-table index set as schema content.🤖 Generated with Claude Code