This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-26
Channels
- # aleph (5)
- # announcements (16)
- # babashka (36)
- # beginners (161)
- # calva (24)
- # cider (8)
- # circleci (45)
- # clj-kondo (5)
- # cljs-dev (25)
- # cljsrn (5)
- # clojure (116)
- # clojure-europe (10)
- # clojure-nl (18)
- # clojure-uk (14)
- # clojuredesign-podcast (6)
- # clojurescript (50)
- # cursive (12)
- # data-science (8)
- # datomic (8)
- # duct (39)
- # emacs (6)
- # fulcro (21)
- # graalvm (12)
- # kaocha (17)
- # off-topic (184)
- # pathom (1)
- # pedestal (2)
- # re-frame (31)
- # reagent (24)
- # reitit (1)
- # sci (1)
- # shadow-cljs (23)
- # sql (147)
- # tools-deps (8)
- # vrac (3)
- # xtdb (35)
Hello everyone :) in datomic, in the schema, how can you write that a combination of two keys is unique, like id and timestamp? With a tuple?
Does anyone have some suggestion how to implement an entity containing several timeseries? Or how to model time series?
The modeling decision here is somewhat up to you, but one option is that each entry in the time series is an individual entity with an ordinal (or time) attr and your "parent" entity has a cardinality many reference to the set of them.
If you never want to introspect the individual entries but will only consume the whole timeseries all together you could also store that data elsewhere in a LOB (like s3) and just store a reference to it in datomic
Thanks a lot!
I am sorry if it sounds trivial, but I am starting with data script.