<?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>Query-Plan on digitalitem: Claude skills library and product lab</title><link>https://digitalitem.online/en/tags/query-plan/</link><description>Recent content in Query-Plan on digitalitem: Claude skills library and product lab</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 22 Oct 2026 10:10:00 +0000</lastBuildDate><atom:link href="https://digitalitem.online/en/tags/query-plan/index.xml" rel="self" type="application/rss+xml"/><item><title>Database Kernel (2): From Syntax Tree to Plan Tree — Filter Pushdown and Join Ordering</title><link>https://digitalitem.online/en/posts/plan-query-planning/</link><pubDate>Thu, 22 Oct 2026 10:10:00 +0000</pubDate><guid>https://digitalitem.online/en/posts/plan-query-planning/</guid><description>&lt;p&gt;Bind produces scopes and expressions; execution needs a &lt;strong&gt;plan tree&lt;/strong&gt;. The conversion in between decides whether a query merely runs or runs fast.&lt;/p&gt;
&lt;p&gt;This is part two of the &lt;a href="https://github.com/daviszhen/plan"&gt;plan&lt;/a&gt; series: how the plan tree is built, and the two optimizations that matter most.&lt;/p&gt;
&lt;h2 id="1-the-minimal-plan-node"&gt;1. The minimal plan node&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-go" data-lang="go"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#66d9ef"&gt;type&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;LogicalOperator&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;struct&lt;/span&gt; {
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;Typ&lt;/span&gt; &lt;span style="color:#a6e22e"&gt;LOT&lt;/span&gt; &lt;span style="color:#75715e"&gt;// scan / filter / project / join / agg / order / limit&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;Children&lt;/span&gt; []&lt;span style="color:#f92672"&gt;*&lt;/span&gt;&lt;span style="color:#a6e22e"&gt;LogicalOperator&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#75715e"&gt;// node-specific extra fields&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Generation follows the bind order:&lt;/p&gt;</description></item></channel></rss>