<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>databases on krtffl.dev</title>
    <link>https://krtffl.dev/tags/databases/</link>
    <description>Recent content in databases on krtffl.dev</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <copyright>© [krtffl](https://krtffl.dev)</copyright>
    <lastBuildDate>Mon, 08 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://krtffl.dev/tags/databases/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>two databases, one binary: duckdb for reads, sqlite for state</title>
      <link>https://krtffl.dev/posts/duckdb-sqlite-one-binary/</link>
      <pubDate>Mon, 08 Jun 2026 00:00:00 +0000</pubDate>
      
      <guid>https://krtffl.dev/posts/duckdb-sqlite-one-binary/</guid>
      <description>&lt;p&gt;the tracking endpoint has exactly one job: say &lt;code&gt;202&lt;/code&gt; and get out of the way. a beacon fires on someone else&amp;rsquo;s website, my server catches it, and the visitor is already three paragraphs into an article before my response even lands. nobody is waiting on that request — the whole point of a &lt;code&gt;sendBeacon&lt;/code&gt; is that the page has already moved on. so the afternoon i read a flame graph and found the ingest handler parked &lt;em&gt;inside&lt;/em&gt; a &lt;code&gt;duckdb&lt;/code&gt; &lt;code&gt;INSERT&lt;/code&gt;, holding a request open while the disk did its thing, i felt a very specific kind of stupid. i&amp;rsquo;d taken a fire-and-forget pixel and taught it to block on fsync.&lt;/p&gt;
&lt;p&gt;fixing that is most of this post. but the fix only makes sense on top of a decision most tutorials would have talked me out of: i put two different databases in one small rust binary, on purpose.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>clean and verified are different claims: a two-axis trust state machine in postgres</title>
      <link>https://krtffl.dev/posts/two-axis-trust-state-machine/</link>
      <pubDate>Mon, 11 May 2026 00:00:00 +0000</pubDate>
      
      <guid>https://krtffl.dev/posts/two-axis-trust-state-machine/</guid>
      <description>&lt;p&gt;ask a language model for a line of tacitus in spanish and it will hand you a sentence. fluent, confident, correctly punctuated. and sometimes the sentence contains a word that no translator ever wrote — a word a scanner invented, when it read the &lt;code&gt;á&lt;/code&gt; in a 1919 printing as the digit &lt;code&gt;4&lt;/code&gt;, or turned &lt;em&gt;violento&lt;/em&gt; into &lt;code&gt;violen10&lt;/code&gt;, and then a spell-checker came along afterward and smoothed the wreckage into something that &lt;em&gt;looks&lt;/em&gt; like spanish.&lt;/p&gt;
&lt;p&gt;the text is clean. it is not correct. and nothing about the way it reads tells you which.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
