This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-05
Channels
- # asami (13)
- # aws (7)
- # babashka (4)
- # beginners (16)
- # biff (7)
- # cljdoc (10)
- # clojure (32)
- # clojure-europe (27)
- # clojure-nl (14)
- # clojure-norway (7)
- # clojure-uk (3)
- # clojurescript (2)
- # conjure (2)
- # core-async (13)
- # datalevin (4)
- # datomic (3)
- # holy-lambda (7)
- # kaocha (3)
- # lsp (23)
- # off-topic (39)
- # pedestal (10)
- # portal (5)
- # practicalli (2)
- # rdf (10)
- # releases (1)
- # shadow-cljs (66)
- # tools-deps (146)
- # uncomplicate (1)
- # xtdb (10)
I have a question on fundamental understanding. When a document is updated, a snapshot of the whole document is saved in the disk? Or just the changed attribute?
the whole doc hits the document store each time (so there is definitely duplication in there, subject to top-level content-hashed idempotency), but the indexes on the node have things decomposed to individual EAVs such that there is almost no duplication
Hey @taylor.jeremydavid is it the same with 2.x?
Another related question, it's possible to determine that only one attribute has changed during a transaction so that I can state that an attribute started to hold a value X from time Y onwards?
> is it the same with 2.x? It is. refset, or was it jarohen stated that it is faster to have every datum reference to the new version, instead of building from multiple versions.
@U28A9C90Q: yep, same with 2.x. with our bitemporality, the second time dimension naturally makes the temporal resolution a little more complex, so if we can do it once per document rather than once per attribute it's tended to make things faster. that said, it's dependent on the use case - if you're only getting one attribute per document anyway, or the attributes within a document change at significantly different rates, YMMV 🙂
regarding your other question: not currently (within XT at least - you can pull the history back and inspect it but I guess that's not really the point 🙂). getting my crystal ball out for a moment, it could be made possible if we were to introduce SQL window functions further down the line, but that's likely a way off yet
Thanks @U050V1N74
Hey @taylor.jeremydavid is it the same with 2.x?