ledger लाई account र time अनुसार partition गर्नुहोस्, भर्खरको data hot र पुरानो data cold राख्नुहोस्, र row हरूलाई append-only immutable ledger मान्नुहोस् — ताकि एउटा account को history अर्बौं row को scan होइन, सानो, indexed slice होस्। access pattern सधैँ "एउटा account, एउटा date range" हो, त्यसैले त्यससँग मिलाएर partition गर्नुहोस्।
आर्किटेक्चर
Write ─▶ Ledger table (append-only, immutable)
partition by (account_hash, month)
│
┌────────┴─────────┐
HOT tier COLD tier
last 3 mo older
Postgres/SSD S3/Parquet, Glacier
│ │
index-seek keyset paginate ──▶ API (account+range)
