This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-30
Channels
- # announcements (7)
- # beginners (103)
- # boot (62)
- # cider (14)
- # clara (10)
- # cljdoc (4)
- # cljs-dev (2)
- # cljsrn (2)
- # clojure (51)
- # clojure-dev (15)
- # clojure-europe (13)
- # clojure-italy (25)
- # clojure-japan (3)
- # clojure-nl (4)
- # clojure-spec (6)
- # clojure-uk (9)
- # clojurescript (72)
- # clojureverse-ops (2)
- # community-development (2)
- # core-async (35)
- # cursive (16)
- # datascript (1)
- # datomic (12)
- # duct (2)
- # emacs (2)
- # fulcro (9)
- # graphql (5)
- # hoplon (5)
- # leiningen (3)
- # luminus (1)
- # nyc (1)
- # off-topic (41)
- # other-languages (1)
- # pathom (16)
- # pedestal (2)
- # re-frame (44)
- # reitit (1)
- # shadow-cljs (33)
- # spacemacs (12)
- # test-check (9)
- # tools-deps (15)
- # vim (4)
Hi! How do I append data to a cardinality/many datom? Do I have to fetch it first, append it then transact it? I am using Datomic Ions.
@hadilsabbagh18 https://docs.datomic.com/on-prem/transactions.html#cadinality-many-transactions
It does not replace the value, in conj’s those new value onto the existing collection.
I’ve often asked myself that question haha. For fundamental things like the above I think its ok. There will be some subtleties. Usually I look at Cloud docs, then on-prem docs if I can’t find something in the Cloud docs.
@hadilsabbagh18, you definitely want to watch the day of datomic talks which cover the core information model, which is the same in both onprem and cloud
Good suggestion @dustingetz. I have watched one of the talks and understand the basics. I need to dive deeper I think.
Say, is it necessary to specify :db/index true
on :db.type/ref
entities in order to get the backrefs to be indexed?
@timgilbert nope. all ref
type attributes are automatically indexed in both directions
👍 Thanks!