<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Columnar on digitalitem: Claude skills library and product lab</title><link>https://digitalitem.online/en/tags/columnar/</link><description>Recent content in Columnar on digitalitem: Claude skills library and product lab</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 22 Oct 2026 10:20:00 +0000</lastBuildDate><atom:link href="https://digitalitem.online/en/tags/columnar/index.xml" rel="self" type="application/rss+xml"/><item><title>Database Kernel (4): Storage — Row Groups, Column Segments and Four Layers</title><link>https://digitalitem.online/en/posts/plan-storage-layout/</link><pubDate>Thu, 22 Oct 2026 10:20:00 +0000</pubDate><guid>https://digitalitem.online/en/posts/plan-storage-layout/</guid><description>&lt;p&gt;Execution deals in chunks; storage answers a different question: &lt;strong&gt;where those chunks live, at what granularity, and how updates and versions fit in&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Part four of the &lt;a href="https://github.com/daviszhen/plan"&gt;plan&lt;/a&gt; series: the four-layer in-memory layout.&lt;/p&gt;
&lt;h2 id="1-four-layers"&gt;1. Four layers&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;table
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;└── row group (122,880 rows)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; └── column data (one column)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; └── column segment (256 KB block, up to 60 vectors)
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; └── vector (2,048 rows)
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The numbers are aligned on purpose:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;60 × 2,048 = 122,880&lt;/code&gt; — one row group is exactly 60 full vectors;&lt;/li&gt;
&lt;li&gt;a segment holds up to 60 vectors, about 256 KB;&lt;/li&gt;
&lt;li&gt;a vector is the smallest read/write unit and the executor&amp;rsquo;s batch size.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Alignment pays off&lt;/strong&gt;: scans skip whole segments and read whole vectors, with no cross-block stitching.&lt;/p&gt;</description></item></channel></rss>