This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-27
Channels
- # adventofcode (1)
- # announcements (4)
- # beginners (120)
- # calva (5)
- # cider (12)
- # clara (3)
- # cljdoc (48)
- # cljs-dev (33)
- # cljsrn (4)
- # clojure (124)
- # clojure-dev (43)
- # clojure-europe (2)
- # clojure-italy (168)
- # clojure-nl (2)
- # clojure-spec (7)
- # clojure-uk (79)
- # clojurescript (50)
- # core-logic (6)
- # cursive (12)
- # datascript (1)
- # datomic (8)
- # devcards (2)
- # emacs (5)
- # events (2)
- # figwheel-main (6)
- # fulcro (18)
- # graphql (42)
- # hyperfiddle (3)
- # jobs (1)
- # luminus (2)
- # nrepl (5)
- # off-topic (59)
- # onyx (5)
- # parinfer (2)
- # pathom (10)
- # pedestal (2)
- # portkey (3)
- # re-frame (24)
- # reagent (6)
- # reitit (54)
- # remote-jobs (1)
- # ring (5)
- # shadow-cljs (75)
- # spacemacs (35)
- # sql (22)
- # tools-deps (16)
- # unrepl (10)
I understand that Datoms are stored in segments, how does Datomic know which segments to fetch for a given eid or attr?
@bhurlow https://docs.datomic.com/cloud/whatis/data-model.html#indexes and https://docs.datomic.com/on-prem/indexes.html
is there a mechanism for pulling just the raw db/ident value instead of #db{:id 123 :ident :my.custom/ident}
?
it’s not that huge a deal, i just figured before i go speccing some stuff (which is kind of difficult to think about wrt (s/keys :req [:db/ident])
), i should make sure there’s not something obvious i’m overlooking from the docs
@bhurlow This helped me understand what's going on under the hood http://www.dustingetz.com/:datomic-performance-gaare/
@bhurlow omg i want db/ident to come down instead of db/id when available too! 100% of cases it is what i want. The entity api does this, but i think it surprised beginners
@bhurlow I have a function "smart-lookup-ref" that takes "what i've got" and turns it into the most idiomatic lookup ref, e.g. db/ident when available, but it's not really that much of an improvement, you still need to ensure that each pull follows the same idioms