Dolt 2.0 Cleans Up the Storage Bill for Versioned Data
· Do Minh Tuan · Business Hackers 🚀
DoltHub has released Dolt 2.0. Dolt is a SQL database that keeps the full history of every row, the way Git keeps the history of every file, and you can branch, merge and clone a database the way you branch code. The new version adds automatic storage cleanup, better compression, and support for vector data types.
I have wanted a database like this to be practical for years. The idea is excellent: roll back a bad migration in seconds, give every developer their own copy of production, and keep an audit trail that a regulator can actually read. My guess is the reason it never took over is the boring one. History takes space, and space costs money every month.
The storage problem, stated plainly
Every change you keep is bytes you store. A database with millions of rows and a busy write load accumulates a lot of history. Deltas compress well, but they still add up, and a team that branches a copy of a large database for every feature multiplies the problem.
Dolt 2.0's answer is automatic garbage collection, which sweeps away data the system no longer needs, plus stronger compression, which makes the remaining data smaller on disk. The announcement frames this as the thing that stops your hosting bill from climbing with your history. That is the right thing to fix. I think storage cost is what kills versioned databases in practice, not the concept.
Garbage collection in a versioned system is delicate, though. By definition you are deleting things that someone might have wanted. The settings matter: how aggressive, what is retained, what happens to old branches. I would read that section of the docs before I pointed a production workload at it, and I would keep an off-site backup that Dolt cannot touch.
Where branching a database actually pays off
The feature I would use first is staging.
I suspect most teams test migrations against a copy of production that is days old, anonymised badly, or simply too large to refresh often. The result is the classic Friday afternoon surprise: the migration ran fine on a small dataset and locks a table for forty minutes on the real one.
With branching, you create a branch of the real database and run the migration there. If it goes wrong, throw the branch away. If it goes right, merge it the way you merge a pull request. The command is a single SQL call, CALL DOLT_BRANCH('new-feature-test'), which is about as ordinary as database tooling gets.
Give a QA engineer that branch and they are testing against real data shapes without touching live data. That is worth more than any dashboard.
The second use is audit. If a customer asks what their record looked like on a given date, a versioned database answers without a restore. If an employee runs a bad update, the recovery is a command rather than a backup process. The announcement leans on both, and it is right to.
The claim I would not repeat
The announcement calls Dolt the world's first fully version-controlled SQL database. I would file that under marketing. The idea has been around for a long time in research and in smaller projects, and the interesting question is whether the implementation is mature enough to trust with production data.
Maturity shows up in the unglamorous places. I would want to know how it behaves under concurrent writes. I would also want to see what a merge conflict looks like when two branches change the same row, and how long garbage collection takes on a large database. Then there is replication and failover, where I would ask for a real answer rather than a roadmap slide.
Dolt's compatibility with MySQL helps a lot here, because the client libraries, the drivers and most of the SQL work unchanged. But compatibility at the protocol level is not the same as identical behaviour under load. Any team considering a move should run their own workload, not a benchmark from the vendor.
Dolt 2.0 also adds vector data types. Vector data represents an item as a list of numbers so a model can compare similarity between items, which is how semantic search and recommendation features usually work.
That is the feature I care about least. My sense is that vector support has become a checkbox more than a differentiator. The useful question is whether vector search inside Dolt is good enough to replace a separate vector store for small and medium datasets, and whether it is fast enough when the table grows. For a team already running Dolt, having it in the same engine is convenient. It is not a reason to migrate.
Before adopting, I would weigh three things. The first is whether your team will actually use branches, or whether they will keep treating the database as a shared mutable thing and only use Dolt as a backup. A versioned database used as a backup is an expensive backup.
The second is operational familiarity. I trust Postgres and MySQL at 2am because of the tooling and the people who know how to fix them. Dolt is a smaller ecosystem. That is a real risk, and it is the kind of risk that only shows up in a bad week.
The third is cost over time. Compression and garbage collection reduce the bill, but they do not make history free. If you keep every branch forever, you will pay for it. A retention policy is part of the design.
For a team in Vietnam running client projects, the staging argument is the strongest. Handing a client a branch of their real database for a demo is a much better experience than a fixture dataset that half works, and the audit trail is easier to explain in a security review than a pile of nightly backups.
My verdict: Dolt 2.0 removes the objection I had, which was that the storage cost made the feature hard to justify. It does not remove the operational risk. Try it on a staging database first, keep your backups, and see whether branching becomes a habit or a feature you demo once. That will tell you more than any release note.
Written with AI assistance, reviewed and edited by Do Minh Tuan.