Datahike vs XTDB
Datahike: Open-source, durable Datalog database for Clojure with Datomic-style immutable history. XTDB: Bitemporal SQL database on object storage that keeps every version of every row.
key differences
- XTDB is built for larger datasets (≤ 10 TB) than Datahike (≤ 100 GB).
- Horizontal scaling is none in Datahike and manual in XTDB.
- Only Datahike has secondary indexes, in-memory.
- Only XTDB has json, columnar storage, compression.
- Datahike can run embedded in your application process.
choose datahike for
- +Clojure apps wanting Datalog and history without Datomic
- +Knowledge graphs and research data with provenance
- +Embedded databases in ClojureScript apps
best at · OLTP, Knowledge graph, Embedded
choose xtdb for
- +Financial and insurance systems needing as-of reporting
- +Audit trails with retroactive corrections
- +Event-sourced systems wanting SQL over history
best at · OLTP, Event sourcing, Ledger
Datahike vs XTDB: FAQ
What is the difference between Datahike and XTDB?
Datahike: Open-source, durable Datalog database for Clojure with Datomic-style immutable history. XTDB: Bitemporal SQL database on object storage that keeps every version of every row. XTDB is built for larger datasets (≤ 10 TB) than Datahike (≤ 100 GB). Horizontal scaling is none in Datahike and manual in XTDB. Only Datahike has secondary indexes, in-memory.
When should I choose Datahike over XTDB?
Choose Datahike for clojure apps wanting Datalog and history without Datomic; knowledge graphs and research data with provenance; and embedded databases in ClojureScript apps. Choose XTDB for financial and insurance systems needing as-of reporting; audit trails with retroactive corrections; and event-sourced systems wanting SQL over history.
Is Datahike or XTDB more popular?
XTDB ranks #328 on the WhichDB Score (8.3/100) and Datahike ranks #374 (5.8/100). Popularity is not fit: check the requirements that matter for your project.
Are Datahike and XTDB open source?
Yes. Datahike is open source. License: Eclipse Public License 1.0. Yes. XTDB is open source. License: Mozilla Public License 2.0.