ARCHOS 525 BLUEPRINT · /d/dgm_code-btree-and-bplustree-pages
B-Tree & B+Tree Disk Page Internals (4KB-16KB Splits & Sibling Scans)
6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_code-btree-and-bplustree-pages) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_code-btree-and-bplustree-pages)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_code-btree-and-bplustree-pages" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="B-Tree & B+Tree Disk Page Internals (4KB-16KB Splits & Sibling Scans) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0["Query Executor"]
n1_1[("Root & Branch Pages")]
n2a_2[("Slotted Leaf Pages")]
n2b_3["Latch Crabbing Mgr"]
n3_4[("Buffer Pool + WAL")]
downstream_5["Downstream & OTel"]
client_0 -->|"1. Binary · Page"| n1_1
n1_1 -->|"2a. Range scan · Leaf"| n2a_2
n1_1 -->|"2b. Latch page · Latch"| n2b_3
n2a_2 -->|"3a. Split/Flus · WAL"| n3_4
n2b_3 -->|"3b. Merge · RAM"| n3_4
n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5COMPONENT STACK (6)
- Query ExecutorSTATELESSPoint & Range Scans
- Root & Branch PagesSTATEFULKeys + child page IDs
- Slotted Leaf PagesSTATEFULSorted keys + sibling linked list
- Latch Crabbing MgrSTATELESSB-Link tree lock-free reads
- Buffer Pool + WALSTATEFULPage split logged atomically
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (6)
- Query Executor → Root & Branch Pages (Binary)[Page]
- Root & Branch Pages → Slotted Leaf Pages (Range scan)[Leaf]
- Root & Branch Pages → Latch Crabbing Mgr (Latch page)[Latch]
- Slotted Leaf Pages → Buffer Pool + WAL (Split/Flus)[WAL]
- Latch Crabbing Mgr → Buffer Pool + WAL (Merge)[RAM]
- Buffer Pool + WAL → Downstream & OTel (Emit /)[OTLP/API]