Skip to content

perf: buffer B tree writes until flush - #1

Merged
MugdhoAI merged 2 commits into
mainfrom
optimize/buffered-writes
Oct 1, 2026
Merged

MugdhoAI merged 2 commits into
mainfrom
optimize/buffered-writes

Conversation

@MugdhoAI

@MugdhoAI MugdhoAI commented Oct 1, 2026

Copy link
Copy Markdown
Owner

This removes per insert page flushes from the B tree write path.

Writes remain in the pager cache and are persisted by table_flush and table_destroy, which already own the explicit flush lifecycle. This avoids repeated disk writes and fflush calls during bulk inserts while keeping the existing persistence boundary.

The change is limited to src/btree.c.

@MugdhoAI
MugdhoAI merged commit a2b4394 into main Oct 1, 2026
2 checks passed
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