<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/can-radix-trees-replace-prolly-trees--fodhsy8fi" -->

---
title: Can Radix Trees Replace Prolly Trees? | daily.dev
description: A thought experiment exploring whether Adaptive Radix Trees (ARTs) could replace Prolly Trees as the underlying data structure for Dolt, the version-controlled...
canonical: https://daily.dev/posts/can-radix-trees-replace-prolly-trees--fodhsy8fi
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Can Radix Trees Replace Prolly Trees? | daily.dev
og:description: A thought experiment exploring whether Adaptive Radix Trees (ARTs) could replace Prolly Trees as the underlying data structure for Dolt, the version-controlled...
og:url: https://daily.dev/posts/can-radix-trees-replace-prolly-trees--fodhsy8fi
og:image: https://api.daily.dev/og/posts/FODhsY8FI.png
og:image:alt: Can Radix Trees Replace Prolly Trees?
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Can Radix Trees Replace Prolly Trees?

**[DoltHub Blog](https://daily.dev/sources/dolthub-blog)** · 12 min read · 0 upvotes · 0 comments

## Summary

A thought experiment exploring whether Adaptive Radix Trees (ARTs) could replace Prolly Trees as the underlying data structure for Dolt, the version-controlled SQL database. Prolly Trees give Dolt content-addressing, history independence, structural sharing, and range lookups. Merkleized ARTs share history independence and structural sharing but require lexicographic key ordering, have depth proportional to key length, and are not self-balancing unless key access is uniform. The piece also floats a hybrid design—a hierarchy of Prolly Trees per index column, effectively a Radix Tree of Prolly Trees—that would enable prefix-based content hashing (useful for filtered DOLT_HASHOF_TABLE queries) at the cost of losing balanced performance guarantees. Concludes Prolly Trees remain the better general-purpose choice, though the hybrid idea is intriguing.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://dolthub.com/blog/2026-09-08-can-radix-trees-replace-prolly-trees>

## Questions this post answers

### Why can't Adaptive Radix Trees fully replace Prolly Trees in a version-controlled database like Dolt?

Adaptive Radix Trees have three main drawbacks compared to Prolly Trees: they only support lexicographic key ordering, which breaks semantic ordering for integers, floats, and decimals unless keys are re-encoded; their height scales with key length even with path compression and lazy expansion; and they are not self-balancing unless keys are uniformly distributed, unlike Prolly Trees which are probabilistically balanced regardless of key distribution.

_Explore ongoing discussion of data structure trade-offs like these on daily.dev when evaluating database internals._

### Can an Adaptive Radix Tree be made into a Merkle tree like a Prolly Tree?

Yes, an Adaptive Radix Tree is not inherently a Merkle tree but can easily become one by storing every node in a hash table and having parent nodes reference children via their hashes. Once Merkleized, an ART gains history independence and structural sharing automatically, since keys with a common prefix always share the same parent node structure regardless of insertion order.

_daily.dev surfaces deep technical breakdowns like this for engineers comparing tree-based storage designs._

### How could Dolt support computing a content hash for a filtered subset of a table's rows?

Dolt's DOLT_HASHOF_TABLE function currently cannot hash a filtered subset of a table because Prolly Trees don't create a node containing exactly the rows matching an arbitrary filter. A Radix Tree would support this for key-prefix filters, since a composite primary key filtered on its first column corresponds to exactly one Radix Tree node, though DOLT_DIFF filtering can achieve a similar equality check today.

_Developers weighing storage-engine trade-offs for filtered hashing can track designs like this via daily.dev._

## Similar posts on daily.dev

- [Investigating A Research Paper About Prolly Trees](https://daily.dev/posts/investigating-a-research-paper-about-prolly-trees-fbytmmdl6) · DoltHub Blog · 1 upvotes · 0 comments
- [How Fast Is DoltLite?](https://daily.dev/posts/how-fast-is-doltlite--antlkgasr) · DoltHub Blog · 69 upvotes · 8 comments
- [Prolly Tree Visualizer](https://daily.dev/posts/prolly-tree-visualizer-ncidopbgv) · DoltHub Blog · 3 upvotes · 0 comments
- [How Dolt Works: The Prolly Tree](https://daily.dev/posts/how-dolt-works-the-prolly-tree-n3aud05lo) · DoltHub Blog · 0 upvotes · 0 comments

---

Tags: [#database](https://daily.dev/tags/database), [#data-structures](https://daily.dev/tags/data-structures), [#dolt](https://daily.dev/tags/dolt)

[View this post on daily.dev](https://daily.dev/posts/can-radix-trees-replace-prolly-trees--fodhsy8fi)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Can Radix Trees Replace Prolly Trees?","url":"https://daily.dev/posts/can-radix-trees-replace-prolly-trees--fodhsy8fi","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/can-radix-trees-replace-prolly-trees--fodhsy8fi"},"datePublished":"2026-09-08T22:44:17.578Z","dateModified":"2026-10-15T02:23:55.742Z","description":"A thought experiment exploring whether Adaptive Radix Trees (ARTs) could replace Prolly Trees as the underlying data structure for Dolt, the version-controlled...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5be2abd207f10572c3a4604a2f783c9c?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5be2abd207f10572c3a4604a2f783c9c?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"DoltHub Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"DoltHub Blog","logo":"https://media.daily.dev/image/upload/s--LXDlvjS4--/f_auto,q_auto/v1780213587/logos/dolthub-blog?_a=BAMAMiWQ0","url":"https://daily.dev/sources/dolthub-blog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/can-radix-trees-replace-prolly-trees--fodhsy8fi","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"database,data-structures,dolt","timeRequired":"PT12M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DoltHub Blog","item":"https://daily.dev/sources/dolthub-blog"},{"@type":"ListItem","position":3,"name":"Can Radix Trees Replace Prolly Trees?"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/can-radix-trees-replace-prolly-trees--fodhsy8fi#faq","mainEntity":[{"@type":"Question","name":"Why can't Adaptive Radix Trees fully replace Prolly Trees in a version-controlled database like Dolt?","acceptedAnswer":{"@type":"Answer","text":"Adaptive Radix Trees have three main drawbacks compared to Prolly Trees: they only support lexicographic key ordering, which breaks semantic ordering for integers, floats, and decimals unless keys are re-encoded; their height scales with key length even with path compression and lazy expansion; and they are not self-balancing unless keys are uniformly distributed, unlike Prolly Trees which are probabilistically balanced regardless of key distribution. Explore ongoing discussion of data structure trade-offs like these on daily.dev when evaluating database internals."}},{"@type":"Question","name":"Can an Adaptive Radix Tree be made into a Merkle tree like a Prolly Tree?","acceptedAnswer":{"@type":"Answer","text":"Yes, an Adaptive Radix Tree is not inherently a Merkle tree but can easily become one by storing every node in a hash table and having parent nodes reference children via their hashes. Once Merkleized, an ART gains history independence and structural sharing automatically, since keys with a common prefix always share the same parent node structure regardless of insertion order. daily.dev surfaces deep technical breakdowns like this for engineers comparing tree-based storage designs."}},{"@type":"Question","name":"How could Dolt support computing a content hash for a filtered subset of a table's rows?","acceptedAnswer":{"@type":"Answer","text":"Dolt's DOLT_HASHOF_TABLE function currently cannot hash a filtered subset of a table because Prolly Trees don't create a node containing exactly the rows matching an arbitrary filter. A Radix Tree would support this for key-prefix filters, since a composite primary key filtered on its first column corresponds to exactly one Radix Tree node, though DOLT_DIFF filtering can achieve a similar equality check today. Developers weighing storage-engine trade-offs for filtered hashing can track designs like this via daily.dev."}}]}
```

