Skip to main content
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
[![B-Tree & B+Tree Disk Page Internals (4KB-16KB Splits & Sibling Scans) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_code-btree-and-bplustree-pages/opengraph-image)](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_5

COMPONENT STACK (6)

  • Query ExecutorSTATELESS
    Point & Range Scans
  • Root & Branch PagesSTATEFUL
    Keys + child page IDs
  • Slotted Leaf PagesSTATEFUL
    Sorted keys + sibling linked list
  • Latch Crabbing MgrSTATELESS
    B-Link tree lock-free reads
  • Buffer Pool + WALSTATEFUL
    Page split logged atomically
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. Query Executor → Root & Branch Pages (Binary)[Page]
  2. Root & Branch Pages → Slotted Leaf Pages (Range scan)[Leaf]
  3. Root & Branch Pages → Latch Crabbing Mgr (Latch page)[Latch]
  4. Slotted Leaf Pages → Buffer Pool + WAL (Split/Flus)[WAL]
  5. Latch Crabbing Mgr → Buffer Pool + WAL (Merge)[RAM]
  6. Buffer Pool + WAL → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →