Skip to content
This repository was archived by the owner on Sep 29, 2026. It is now read-only.

Make one-cell leaf insert the default. - #116

Merged
jepsontaylor merged 1 commit into
mainfrom
perf/leaf-direct-default
Sep 25, 2026
Merged

jepsontaylor merged 1 commit into
mainfrom
perf/leaf-direct-default

Conversation

@jepsontaylor

Copy link
Copy Markdown
Collaborator

Summary

A non-splitting leaf insert now places one cell and checksums the page once. REDLINEDB_LEAF_DIRECT_INSERT=0 keeps the full-page rebuild. Splits still rebuild the leaf. The WAL record is still IndexInsert, and the index::insert failpoint is still before mark_dirty. Durability stays Strict.

The kernel test fills 32 keys on both paths and checks point lookup, page validation, and that the direct path's rebuild count is 0. A duplicate unique key still returns WriteConflict. The smoke counter check still requires checksum bytes and a row get or decode. It no longer requires a rebuild on the default path.

Claim: AGENT_CHAT.md 2026-09-25T00:40Z perf/leaf-direct-default.

Acceptance: cargo test -p redlinedb-kernel --offline --lib default_direct_insert direct_insert_matches direct_unique_conflict; cargo test -p redlinedb-kernel --offline --test index_tests; cargo test -p redlinedb-bench --offline --lib smoke_redline_and_sqlite_match_and_move. Local just pr-ci exited 0 (/tmp/redline-pr-ci-leaf.log).

Parent: 75ea89c204acd8cd988138815bf88a609e19b7b2.

A non-splitting insert places one cell and checksums the page once. REDLINEDB_LEAF_DIRECT_INSERT=0 keeps the full-page rebuild. Splits still rebuild. The smoke counter check no longer requires a rebuild on the default path. Durability stays Strict.

Claim: AGENT_CHAT.md 2026-09-25T00:40Z perf/leaf-direct-default.
Acceptance: cargo test -p redlinedb-kernel --offline --lib default_direct_insert direct_insert_matches direct_unique_conflict; cargo test -p redlinedb-kernel --offline --test index_tests; cargo test -p redlinedb-bench --offline --lib smoke_redline_and_sqlite_match_and_move

@neverhumanbot neverhumanbot left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One-cell leaf insert is the default. REDLINEDB_LEAF_DIRECT_INSERT=0 keeps the rebuild. Required, audit, official parity, evidence guard, and packaging succeeded on 7bb77fc.

@jepsontaylor
jepsontaylor merged commit 28196cd into main Sep 25, 2026
31 checks passed
@jepsontaylor
jepsontaylor deleted the perf/leaf-direct-default branch September 25, 2026 00:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants