DataScript vs XTDB
DataScript: Immutable in-memory database with Datomic-style Datalog queries for Clojure, ClojureScript and JavaScript. XTDB: Bitemporal SQL database on object storage that keeps every version of every row.
key differences
- DataScript is primarily a graph database; XTDB is relational.
- XTDB is built for larger datasets (≤ 10 TB) than DataScript (≤ 100 GB).
- Horizontal scaling is none in DataScript and manual in XTDB.
- Only DataScript has secondary indexes, in-memory.
- Only XTDB has json, columnar storage, compression, time travel.
- DataScript can run embedded in your application process.
choose datascript for
- +Client-side application state for ClojureScript apps
- +Local-first note-taking and outliner tools
- +In-memory graph queries over modest datasets
best at · Embedded, Local-first, Knowledge graph
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
DataScript vs XTDB: FAQ
What is the difference between DataScript and XTDB?
DataScript: Immutable in-memory database with Datomic-style Datalog queries for Clojure, ClojureScript and JavaScript. XTDB: Bitemporal SQL database on object storage that keeps every version of every row. DataScript is primarily a graph database; XTDB is relational. XTDB is built for larger datasets (≤ 10 TB) than DataScript (≤ 100 GB). Horizontal scaling is none in DataScript and manual in XTDB.
When should I choose DataScript over XTDB?
Choose DataScript for client-side application state for ClojureScript apps; local-first note-taking and outliner tools; and in-memory graph queries over modest datasets. 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 DataScript or XTDB more popular?
DataScript ranks #233 on the WhichDB Score (14.4/100) and XTDB ranks #328 (8.3/100). Popularity is not fit: check the requirements that matter for your project.
Are DataScript and XTDB open source?
Yes. DataScript is open source. License: Eclipse Public License 1.0. Yes. XTDB is open source. License: Mozilla Public License 2.0.