Feat/secondary indexes#12
Merged
Merged
Conversation
- Added `extract_field_raw` for zero-allocation MessagePack field extraction. - Introduced `IndexRegistry` to natively manage secondary indexes. - Wired atomic MVCC index updates during `insert`, `update_doc`, and `delete`. - Flattened pagination params to handle dynamic `where[field]` intercept routing. - Implemented `POST /v1/_query` relational BFS executor with N+1 B-Tree traversals. - Designed `JoinQuery` AST in `forge-types` enforcing max depth caps.
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.
PR: Secondary Indexes & Secure Joins (with RLS Enforcement)
Component:
crates/storage,crates/query,crates/serverBranch:
feat/secondary-indexesSummary
This is a major feature PR introducing secondary indexing capabilities for fast field-lookups and "Safe Joins" for relational traversals. Crucially, it also implements strict Row-Level Security (RLS) enforcement for all list and query operations.
Key Changes
_indexestable in redbx to store field-to-ID mappings.extract_field_raw) with a 64-depth recursion guard to prevent DoS attacks.POST /v1/_queryendpoint allowing local BFS traversal of related collections.list_docsandquery_docs.next_cursoralways points to the last scanned B-Tree document to prevent record leakage or skipping.Verification Results