This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-02
Channels
- # announcements (2)
- # beginners (69)
- # boot (1)
- # cider (35)
- # clara (1)
- # cljs-dev (1)
- # clojure (40)
- # clojure-spec (11)
- # clojure-uk (8)
- # clojurescript (9)
- # cursive (1)
- # datomic (5)
- # figwheel-main (25)
- # fulcro (64)
- # jobs (2)
- # jukebox (1)
- # kaocha (3)
- # off-topic (7)
- # pathom (39)
- # planck (5)
- # random (1)
- # re-frame (11)
- # reagent (8)
- # shadow-cljs (58)
- # test-check (41)
- # vim (13)
what's the best way to reconcile "across time" queries to singular points in time across that series? i.e., return values adhering to relations at they existed at single points in time across large swaths of time.
is the best we can do: create as-of
snapshots across all of time (i.e., at each tx-id) and run the query against each of those? or is there something that can be done with a join/filter involving ?tx
and :db/txInstant
in a historical query?
my naive approach is essentially resulting in a cross-join of all values of particular entity x with all values of attribute of related entity y across all of time (which is obviously not what I need).
@favila my problem is that a join (on a d/history
db) seems to join across all of time; i.e., all attr A for entity Y values related to entity X that occur after X comes into existence are returned. a la a "cross join". I want to get attr A for related entity Y at each consistent point in time across all of history (preferably in a single query without mapping over each transaction ID and doing as-of
on each tx-id [which would be very costly]). does that make sense?
@favila my problem is that a join (on a d/history
db) seems to join across all of time; i.e., all attr A for entity Y values related to entity X that occur after X comes into existence are returned. a la a "cross join". I want to get attr A for related entity Y at each consistent point in time across all of history (preferably in a single query without mapping over each transaction ID and doing as-of
on each tx-id [which would be very costly]). does that make sense?