<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cost Formulas on Daniel's Tech Blog</title><link>https://tech.daniellbastos.com.br/tags/cost-formulas/</link><description>Recent content in Cost Formulas on Daniel's Tech Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 17 Apr 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://tech.daniellbastos.com.br/tags/cost-formulas/index.xml" rel="self" type="application/rss+xml"/><item><title>Access Path Selection in a Relational Database Management System - Chapter 4: Cost Formulas</title><link>https://tech.daniellbastos.com.br/posts/chapter-4-cost-formulas/</link><pubDate>Fri, 17 Apr 2026 00:00:00 +0000</pubDate><guid>https://tech.daniellbastos.com.br/posts/chapter-4-cost-formulas/</guid><description>&lt;blockquote&gt;
&lt;p&gt;This post continues the study of &lt;a href="https://courses.cs.duke.edu/compsci516/cps216/spring03/papers/selinger-etal-1979.pdf"&gt;Access Path Selection in a Relational Database Management System (Selinger et al., 1979)&lt;/a&gt;, now covering chapter 4. I used available internet resources and tools to go deeper on the examples and make the concepts more concrete.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id="what-chapter-4-covers"&gt;What chapter 4 covers&lt;/h2&gt;
&lt;p&gt;Chapter 4 describes how the optimizer estimates the cost of each access path available for a single relation and picks the cheapest one. It introduces the catalog statistics the optimizer depends on, the selectivity factors applied to different predicate types, and the cost formulas for each possible situation: unique index with equality, clustered and non-clustered indexes with and without matching predicates, and the segment scan fallback.&lt;/p&gt;</description></item></channel></rss>