{"slug": "datalevin", "name": "Datalevin", "category": "databases", "category_name": "Databases", "description": "", "recommenders": 3, "commenters": 6, "warners": 0, "score": 3.443, "rising": 0.35, "first": "2026-01-06", "latest": "2026-09-16", "why": "Datalevin [0], which has a Datomic-like Datalog query language with SQLite-style semantics. Recommended.", "why_is_quote": true, "has_verdict": false, "sentiment": {"recommend": 4, "neutral": 3, "compare": 0, "warn": 0}, "spark": [0, 0, 2, 0, 0, 0, 0, 0, 0, 1, 1, 0], "listed": true, "loved": [], "caveat": "", "short_quote": "Datalevin [0], which has a Datomic-like Datalog query language with SQLite-style semantics. Recommended.", "kind": "", "icon": true, "domain": null, "github_repo": "github.com/datalevin/datalevin", "official_url": "https://github.com/datalevin/datalevin", "pricing": "", "aliases": ["Datalevin"], "verdict": null, "praise": [{"label": "", "summary": "", "quotes": [{"id": 795748512, "item_id": 49734282, "url": "https://news.ycombinator.com/item?id=49734282", "by": "huahaiy", "date": "2026-09-16", "stance": "recommend", "quote": "It is not hard to be more than 3x better than Postgres [1].", "excerpt": "81%is nothing. It is not hard to be more than 3x better than Postgres [1]. And you don\u2019t need a model to do that, let alone a 4B model. How much additional compute is needed to just run that model? [1] https://github.com/datalevin/datalevin/tree/master/benchmarks/JOB-bench", "context": "", "use_case": "query optimization", "switched_from": "", "story": "Training a 4B model to produce 81% faster query plans than Postgres"}, {"id": 789543200, "item_id": 49346450, "url": "https://news.ycombinator.com/item?id=49346450", "by": "huahaiy", "date": "2026-08-18", "stance": "recommend", "quote": "Datalog could be a better alternative: https://datalevin.org/docs/preface", "excerpt": "Agree. Datalog could be a better alternative: https://datalevin.org/docs/preface", "context": "", "use_case": "", "switched_from": "", "story": "Rethinking Database Programming"}, {"id": 744556913, "item_id": 46534807, "url": "https://news.ycombinator.com/item?id=46534807", "by": "malloryerik", "date": "2026-01-07", "stance": "recommend", "quote": "There's also a fantastic kind of mini, FOSS, file-based Datomic-style Datalog DB", "excerpt": "Btw Datomic is free now that Nubank supports it (and runs a large bank on it). There's also a fantastic kind of mini, FOSS, file-based Datomic-style Datalog DB that's not immutable called Datalevin. Uses the hyper-fast LMDB under the hood. It's called Datalevin. https://github.com/juji-io/datalevin", "context": "", "use_case": "", "switched_from": "", "story": "Databases in 2025: A Year in Review"}, {"id": 744211408, "item_id": 46513213, "url": "https://news.ycombinator.com/item?id=46513213", "by": "erichocean", "date": "2026-01-06", "stance": "recommend", "quote": "Datalevin [0], which has a Datomic-like Datalog query language with SQLite-style semantics. Recommended.", "excerpt": "The equivalent \"platform native\" database for Clojure is Datalevin [0], which has a Datomic-like Datalog query language with SQLite-style semantics. Recommended. [0] https://github.com/juji-io/datalevin", "context": "", "use_case": "", "switched_from": "", "story": "C Is Best"}]}], "caveats": [], "who": [], "tags": [], "use_cases": ["query optimization", "datalog database"], "compared": [{"slug": "datomic", "name": "Datomic", "co": 2, "switched_from": 0, "switched_to": 0}], "makers": [], "threads": [{"url": "https://news.ycombinator.com/item?id=49342530", "title": "Rethinking Database Programming", "mentions": 2}, {"url": "https://news.ycombinator.com/item?id=49731285", "title": "Training a 4B model to produce 81% faster query plans than Postgres", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=47798345", "title": "Official Clojure Documentary page with Video, Shownotes, and Links", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=47645468", "title": "Writing Lisp Is AI Resistant and I'm Sad", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=46496103", "title": "Databases in 2025: A Year in Review", "mentions": 1}, {"url": "https://news.ycombinator.com/item?id=46511470", "title": "C Is Best", "mentions": 1}], "sentiment_by_month": {"2025-11": {}, "2025-12": {}, "2026-01": {"recommend": 2}, "2026-02": {}, "2026-03": {}, "2026-04": {"neutral": 2}, "2026-05": {}, "2026-06": {}, "2026-07": {}, "2026-08": {"recommend": 1, "neutral": 1}, "2026-09": {"recommend": 1}, "2026-10": {}}, "quotes": [{"id": 795748512, "item_id": 49734282, "url": "https://news.ycombinator.com/item?id=49734282", "by": "huahaiy", "date": "2026-09-16", "stance": "recommend", "quote": "It is not hard to be more than 3x better than Postgres [1].", "excerpt": "81%is nothing. It is not hard to be more than 3x better than Postgres [1]. And you don\u2019t need a model to do that, let alone a 4B model. How much additional compute is needed to just run that model? [1] https://github.com/datalevin/datalevin/tree/master/benchmarks/JOB-bench", "context": "", "use_case": "query optimization", "switched_from": "", "story": "Training a 4B model to produce 81% faster query plans than Postgres"}, {"id": 790197136, "item_id": 49387321, "url": "https://news.ycombinator.com/item?id=49387321", "by": "schaefer", "date": "2026-08-21", "stance": "neutral", "quote": "I'll give it a try - even though I don't know Clojure.", "excerpt": "Interesting! I ordered a copy of your book about Datalevin. I'll give it a try - even though I don't know Clojure. Thank you for your contributions to open source.", "context": "", "use_case": "Datalog database", "switched_from": "", "story": "Rethinking Database Programming"}, {"id": 789543200, "item_id": 49346450, "url": "https://news.ycombinator.com/item?id=49346450", "by": "huahaiy", "date": "2026-08-18", "stance": "recommend", "quote": "Datalog could be a better alternative: https://datalevin.org/docs/preface", "excerpt": "Agree. Datalog could be a better alternative: https://datalevin.org/docs/preface", "context": "", "use_case": "", "switched_from": "", "story": "Rethinking Database Programming"}, {"id": 764943857, "item_id": 47808991, "url": "https://news.ycombinator.com/item?id=47808991", "by": "dimitar", "date": "2026-04-17", "stance": "neutral", "quote": "it has inspired a few other clojure datalog databases", "excerpt": "It is! And also it has inspired a few other clojure datalog databases, so there is much more choice: * https://github.com/datalevin/datalevin * https://github.com/replikativ/datahike * https://github.com/threatgrid/asami There is also xtdb, but it abandoned datalog and is going in another (albeit interesting direction) https://xtdb.com/ here is a comparison website, but it is somewhat out of date: https://clojurelog.", "context": "", "use_case": "", "switched_from": "", "story": "Official Clojure Documentary page with Video, Shownotes, and Links"}, {"id": 762361712, "item_id": 47647607, "url": "https://news.ycombinator.com/item?id=47647607", "by": "mark_l_watson", "date": "2026-04-05", "stance": "neutral", "quote": "thanks for mentioning Datalevin", "excerpt": "Hey, thanks for mentioning Datalevin (https://github.com/datalevin/datalevin) - I hadn\u2019t seen that before.", "context": "", "use_case": "", "switched_from": "", "story": "Writing Lisp Is AI Resistant and I'm Sad"}, {"id": 744556913, "item_id": 46534807, "url": "https://news.ycombinator.com/item?id=46534807", "by": "malloryerik", "date": "2026-01-07", "stance": "recommend", "quote": "There's also a fantastic kind of mini, FOSS, file-based Datomic-style Datalog DB", "excerpt": "Btw Datomic is free now that Nubank supports it (and runs a large bank on it). There's also a fantastic kind of mini, FOSS, file-based Datomic-style Datalog DB that's not immutable called Datalevin. Uses the hyper-fast LMDB under the hood. It's called Datalevin. https://github.com/juji-io/datalevin", "context": "", "use_case": "", "switched_from": "", "story": "Databases in 2025: A Year in Review"}, {"id": 744211408, "item_id": 46513213, "url": "https://news.ycombinator.com/item?id=46513213", "by": "erichocean", "date": "2026-01-06", "stance": "recommend", "quote": "Datalevin [0], which has a Datomic-like Datalog query language with SQLite-style semantics. Recommended.", "excerpt": "The equivalent \"platform native\" database for Clojure is Datalevin [0], which has a Datomic-like Datalog query language with SQLite-style semantics. Recommended. [0] https://github.com/juji-io/datalevin", "context": "", "use_case": "", "switched_from": "", "story": "C Is Best"}]}