<?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>Cascades on digitalitem: Claude skills library and product lab</title><link>https://digitalitem.online/en/tags/cascades/</link><description>Recent content in Cascades on digitalitem: Claude skills library and product lab</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 20 Oct 2026 13:10:00 +0000</lastBuildDate><atom:link href="https://digitalitem.online/en/tags/cascades/index.xml" rel="self" type="application/rss+xml"/><item><title>gporca's Rule System: How to Read 119 Rules</title><link>https://digitalitem.online/en/posts/gporca-rules/</link><pubDate>Tue, 20 Oct 2026 13:10:00 +0000</pubDate><guid>https://digitalitem.online/en/posts/gporca-rules/</guid><description>&lt;p&gt;The previous post covered gporca&amp;rsquo;s DP cells. This one covers rules: &lt;code&gt;xforms/&lt;/code&gt; contains &lt;strong&gt;119 files, roughly 44K lines&lt;/strong&gt;. At first it looks like required reading — it isn&amp;rsquo;t. Rules are highly homogeneous; understanding three of them teaches you a whole class.&lt;/p&gt;
&lt;h2 id="1-there-are-only-three-kinds-of-rules"&gt;1. There are only three kinds of rules&lt;/h2&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Kind&lt;/th&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;th&gt;Examples&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Transformation&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Produce equivalent logical expressions inside the same group&lt;/td&gt;
&lt;td&gt;Join commutativity, associativity, predicate pushdown&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Implementation&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Turn a logical expression into an executable physical operator&lt;/td&gt;
&lt;td&gt;HashJoin, IndexScan, Sort&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Enforcer&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Insert operators to satisfy parent requirements&lt;/td&gt;
&lt;td&gt;Sort (order), Motion (distribution)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;Search works like this: transformations grow groups, implementations propose candidates, DP picks the cheapest per group.&lt;/p&gt;</description></item><item><title>The Optimizer's Cost Model: From Formulas to Calibrated Numbers</title><link>https://digitalitem.online/en/posts/optimizer-cost-model/</link><pubDate>Tue, 20 Oct 2026 13:05:00 +0000</pubDate><guid>https://digitalitem.online/en/posts/optimizer-cost-model/</guid><description>&lt;p&gt;The search space decides how many plans you can think of; the rules decide what shapes are reachable; and &lt;strong&gt;the cost model decides who wins&lt;/strong&gt;. Whether an optimizer is usable depends heavily on whether its cost model &amp;ldquo;makes sense&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;This post takes COLUMBIA&amp;rsquo;s cost model apart, plus the traps we hit when calibrating it on TPC-H.&lt;/p&gt;
&lt;h2 id="1-what-columbias-cost-model-looks-like"&gt;1. What COLUMBIA&amp;rsquo;s cost model looks like&lt;/h2&gt;
&lt;p&gt;Minimal: a cost model is &lt;strong&gt;a set of constants plus a local-cost formula per physical operator&lt;/strong&gt;.&lt;/p&gt;</description></item><item><title>Writing a Query Optimizer: From COLUMBIA to TPC-H</title><link>https://digitalitem.online/en/posts/writing-a-query-optimizer/</link><pubDate>Tue, 20 Oct 2026 12:50:00 +0000</pubDate><guid>https://digitalitem.online/en/posts/writing-a-query-optimizer/</guid><description>&lt;p&gt;Query optimizers are the component everyone uses and few people write. You can recite Join Order, subquery unnesting and cost models in an interview — but actually writing an optimizer that survives all 22 TPC-H queries teaches you that the hard part isn&amp;rsquo;t the vocabulary. It&amp;rsquo;s the way the details constrain each other.&lt;/p&gt;
&lt;p&gt;This series is a record of one such attempt: from porting a textbook Cascades implementation, to making it digest TPC-H, to admitting the traps it fell into.&lt;/p&gt;</description></item><item><title>Reading gporca (Part 1): Only ~11K of Its 400K Lines Are Actually Framework</title><link>https://digitalitem.online/en/posts/gporca-framework/</link><pubDate>Tue, 20 Oct 2026 06:30:00 +0000</pubDate><guid>https://digitalitem.online/en/posts/gporca-framework/</guid><description>Slicing gporca by &amp;#39;is this a framework design decision&amp;#39;: what each of its four libraries really is, the six mechanisms worth reading, and a practical reading order.</description></item><item><title>Porting a 1999 Cascades Optimizer to Modern C++: The COLUMBIA Story</title><link>https://digitalitem.online/en/posts/columbia-port/</link><pubDate>Tue, 20 Oct 2026 06:00:00 +0000</pubDate><guid>https://digitalitem.online/en/posts/columbia-port/</guid><description>How a 19,787-line MFC optimizer from 1999 got rebuilt, debugged, and made to run its own test corpus — without MFC and without Windows.</description></item></channel></rss>