Add storage and query optimization roadmap#79
Merged
Conversation
cd5cf26 to
99ec41c
Compare
Design doc covering: - Block-Max WAND for O(k log n) top-k queries - Block-aligned posting storage with skip lists - FOR/PFOR compression for 50%+ space reduction - Fieldnorm quantization (Lucene SmallFloat scheme) - Phased implementation plan (v0.0.4 through v0.0.7) Also updates README to clarify "not yet recommended" status.
99ec41c to
29d056c
Compare
- Add multi-segment query execution section (per-segment BMW, merge results) - Add WAND vs MAXSCORE comparison (Lucene switched to MAXSCORE in 2022) - Clarify block structure: skip index entries separate from posting data - Add IDF computation note (sum df across segments) - Add DELETE handling section (punt to Postgres visibility for now) - Simplify migration: require REINDEX, no backward compatibility - Document buffer manager overhead benchmark results (validated on-disk hash) - Update references with Elastic and ECIR 2020 papers
f44d1ea to
3600888
Compare
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.
Summary
Adds design doc (
OPTIMIZATION_ROADMAP.md) covering planned optimizations:Updates README to clarify "not yet recommended" production status
The roadmap draws from analysis of Tantivy and Lucene implementations, prioritizing asymptotic gains (BMW) over constant-factor gains (compression).