r/Clojure • u/pdroaugust312 • Oct 08 '25
Question about databases in the Clojure ecosystem from a Rails dev's perspective
I'm coming from Rails and have a question about databases.
In Rails, the preference is to use established databases, such as MySQL, Postgres, and more recently SQLite.
As I entered the Clojure world, I've noticed a greater openness to two previously unknown databases: Datomic and XTDB.
I'm completely unfamiliar with these databases. Would they be appropriate for general applications (CRUD), or do they have specific use cases? What about the track record of these databases? Have they been tested over time?
Thanks.
31
Upvotes
View all comments
Show parent comment
4
u/peripateticlabs Oct 09 '25
I don't wish to contradict what has been written about the support for bitemporality within XTDB and Datomic. I am not going to disparage them. They are representative of the spirit and quality of innovation which is typical throughout the Clojure ecosystem. So many good ideas in this community!
However, I was surprised recently to discover that MariaDB also includes support for temporal tables and bitemporality:
https://mariadb.com/docs/server/reference/sql-structure/temporal-tables
I made good use of them in a fintech project I worked on in 2024 and the first third of 2025. That I could leverage low-cost AWS RDS hosting with MariaDB helped me de-risk it even more.
I mention this because MariaDB offers a straightforward pathway to utilize temporal tables features via a "traditional" relational database with a JDBC-compliant client in the Clojure space (i.e.,
next.jdbc). Sean's work onnext.jdbcis truly impressive and it is straightforward to leverage in your stack.But Datomic and XTDB are definitely worth a look, even if they are not the most appropriate solution for your stack right now. Good luck!