This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-06
Channels
- # announcements (33)
- # babashka (13)
- # babashka-sci-dev (23)
- # beginners (94)
- # calva (105)
- # cider (37)
- # circleci (1)
- # clj-kondo (45)
- # cljs-dev (59)
- # cljsrn (2)
- # clojure (145)
- # clojure-czech (1)
- # clojure-europe (19)
- # clojure-nl (18)
- # clojure-norway (13)
- # clojure-portugal (1)
- # clojure-uk (5)
- # clojurescript (19)
- # community-development (2)
- # conjure (3)
- # copenhagen-clojurians (1)
- # core-async (34)
- # data-science (6)
- # datomic (25)
- # emacs (43)
- # fulcro (19)
- # graalvm (7)
- # graalvm-mobile (12)
- # graphql (10)
- # honeysql (3)
- # hyperfiddle (3)
- # improve-getting-started (2)
- # interop (20)
- # kaocha (3)
- # lsp (16)
- # meander (7)
- # off-topic (22)
- # other-languages (14)
- # portal (15)
- # releases (1)
- # rewrite-clj (2)
- # ring (1)
- # shadow-cljs (119)
- # spacemacs (19)
- # sql (65)
- # testing (4)
- # tools-deps (11)
- # xtdb (29)
Hi guys! Few days ago I asked a question about datomic here and someone brought up XTDB. I had a chance to look into it and it seems pretty cool. Does anyone has a good guide for how to set xtdb up on the cloud like GCP or AWS? Thanks a lot!
Thanks a lot!
I took over a Datomic job and still a bit new to it. Is it bad for Datomic to transact huge amounts of data every night that is not changed? I read https://ag91.github.io/blog/2022/03/13/datomic-a-little-snippet-to-analyze-what-attributes-your-transactions-change-most-often/ and found out that there are more than 2 million transactions every night that only have a :txInstant
in it and I have the feeling that this is not good... Do I need to sort out what to transact in my code or is there some kind of trick to it?
The presence of the transaction itself could be a signal that a job was done, but for that to be useful signal the transaction would need some other metadata on it, not be completely empty.
I would say this is possibly a code smell, but operationally it’s not a problem in itself
ok, thanks. so it is a problem for the underlying storage like sql-db but not for datomic itself?! It is growing strong and needs to be contained.
yeah, it is every night and the underlying oracle is more than 2tb already and growing fast
> i read it as re-transacting a bunch of data and the only difference was the timestamp
From the tx log, you can’t tell the difference between this and (d/transact conn [])
If you want to avoid doing a lot of entirely empty transactions (which doesn't really give you much in terms of traceability) you should look in the db (d/db conn) for the data you try to upsert. If it is already there, you don't have to transact anything. But maybe you should create a transaction tagged with data that makes it apparent the system has made the integrity check of the data instead. This probably wont have to use 2 million transactions per night, though...
Does it make history queries slower when there are retransactions every night with unchanged data?
dev-tools release 0.9.72 - https://forum.datomic.com/t/cognitect-dev-tools-version-0-9-72-now-available/2066