<?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>Transactions on digitalitem: Claude skills library and product lab</title><link>https://digitalitem.online/en/tags/transactions/</link><description>Recent content in Transactions on digitalitem: Claude skills library and product lab</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 22 Oct 2026 10:25:00 +0000</lastBuildDate><atom:link href="https://digitalitem.online/en/tags/transactions/index.xml" rel="self" type="application/rss+xml"/><item><title>Database Kernel (5): Transactions, Timestamps and GC</title><link>https://digitalitem.online/en/posts/plan-transactions-mvcc/</link><pubDate>Thu, 22 Oct 2026 10:25:00 +0000</pubDate><guid>https://digitalitem.online/en/posts/plan-transactions-mvcc/</guid><description>&lt;p&gt;Multiple versions make concurrent reads and writes possible, but versions aren&amp;rsquo;t free: &lt;strong&gt;who creates them, who can see them, and when they can be dropped&lt;/strong&gt; all need explicit answers.&lt;/p&gt;
&lt;p&gt;Part five of the &lt;a href="https://github.com/daviszhen/plan"&gt;plan&lt;/a&gt; series.&lt;/p&gt;
&lt;h2 id="1-txnmgr-holds-very-little"&gt;1. TxnMgr holds very little&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:#a6e22e"&gt;TxnMgr&lt;/span&gt;{
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;currentStartTs&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;uint64&lt;/span&gt; &lt;span style="color:#75715e"&gt;// starts at 2, +1 per txn, &amp;lt; 2^62&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;currentTxnId&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;uint64&lt;/span&gt; &lt;span style="color:#75715e"&gt;// starts at 2^62, +1 per txn&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;lowestActiveId&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;uint64&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;lowestActiveStart&lt;/span&gt; &lt;span style="color:#66d9ef"&gt;uint64&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;activeTxns&lt;/span&gt; []&lt;span style="color:#a6e22e"&gt;Txn&lt;/span&gt; &lt;span style="color:#75715e"&gt;// created, not committed/rolled back&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;committedTxns&lt;/span&gt; []&lt;span style="color:#a6e22e"&gt;Txn&lt;/span&gt; &lt;span style="color:#75715e"&gt;// committed, not GC&amp;#39;d&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; &lt;span style="color:#a6e22e"&gt;oldTxns&lt;/span&gt; []&lt;span style="color:#a6e22e"&gt;Txn&lt;/span&gt; &lt;span style="color:#75715e"&gt;// GC-able, not GC&amp;#39;d&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;The two counters start in different ranges so &lt;strong&gt;timestamps and transaction ids never collide&lt;/strong&gt;:&lt;/p&gt;</description></item><item><title>Implementing Git for Data on DuckDB (Part 4): Moving Metadata into Tables — Transactions, Crash Consistency and 'Hidden but Readable'</title><link>https://digitalitem.online/en/posts/duckdb-git4data-registry/</link><pubDate>Tue, 20 Oct 2026 08:30:00 +0000</pubDate><guid>https://digitalitem.online/en/posts/duckdb-git4data-registry/</guid><description>The reference registry used to live in the checkpoint metadata block — no transactions, no WAL. Moving it into a hidden schema of four tables bought transactions and crash consistency.</description></item></channel></rss>