datalevin 2026-11-23

What are the reasons datalevin hasn’t reached a stable format yet? If it aims to compete with sqlite, this is one of the most important attributes of sqlite. An unstable format that requires migrating the underlying data representation/storage format on updates makes datalevin feel less reliable. Is there a timeline when the data format might stabilize?

SQLite is abnormal, so it is very limited in its functionality. Most databases are not like that. Datalevin does so much more than SQlite. I don't take that as a competition at all.

Each major version of Postgres still needs upgrades today. The last layout change was 8.3 in 2008. 22 years after the project started.

Datalevin is like MySQL, it does auto migration.

I don't foresee binary format changes after 2.0. But that is not a promise.

The next upgrade is to use the new format of LMDB 1.0, which added page level transaction id and encryption.

So to answer your question, the reason is that LMDB is still evolving, new features are becoming available. Datalevin wants to take advantage of that.

👍 1

Is the auto-migration forced? Will manual dump/load remain available? Just wondering if what might be the best way to minimize downtime.

Manual dump/load remains available. Auto migration is on db open.

👍 1

Is it normal that I ran datalevin on linux x86_64 but it’s downloading jars for other platforms? i.e.

Downloading: org/clojars/huahaiy/dtlvnative-linux-arm64/1.2.2/dtlvnative-linux-arm64-1.2.2.pom from clojars
Downloading: org/clojars/huahaiy/dtlvnative-macosx-arm64/1.2.2/dtlvnative-macosx-arm64-1.2.2.pom from clojars
Downloading: org/clojars/huahaiy/dtlvnative-linux-x86_64/1.2.2/dtlvnative-linux-x86_64-1.2.2.pom from clojars
Downloading: org/clojars/huahaiy/dtlvnative-windows-x86_64/1.2.2/dtlvnative-windows-x86_64-1.2.2.pom from clojars
Downloading: org/clojars/huahaiy/dtlvnative-macosx-arm64/1.2.2/dtlvnative-macosx-arm64-1.2.2.jar from clojars
Downloading: org/clojars/huahaiy/dtlvnative-linux-arm64/1.2.2/dtlvnative-linux-arm64-1.2.2.jar from clojars
Downloading: datalevin/datalevin/1.2.11/datalevin-1.2.11.jar from clojars
Downloading: org/clojars/huahaiy/dtlvnative-linux-x86_64/1.2.2/dtlvnative-linux-x86_64-1.2.2.jar from clojars
Downloading: org/clojars/huahaiy/dtlvnative-windows-x86_64/1.2.2/dtlvnative-windows-x86_64-1.2.2.jar from clojars

We can improve it in the future.

It is also a common practice for JVM lib to include native dependencies