This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-30
Channels
- # asami (10)
- # babashka (14)
- # beginners (71)
- # calva (56)
- # cider (8)
- # cljs-dev (3)
- # clojure (111)
- # clojure-australia (1)
- # clojure-europe (19)
- # clojure-nl (4)
- # clojure-uk (147)
- # clojurescript (4)
- # cursive (8)
- # datalog (1)
- # datomic (19)
- # emacs (4)
- # graalvm (32)
- # helix (14)
- # jackdaw (7)
- # jobs-discuss (10)
- # juxt (4)
- # lsp (3)
- # malli (47)
- # meander (6)
- # off-topic (29)
- # portal (6)
- # re-frame (1)
- # react (3)
- # reitit (24)
- # releases (1)
- # remote-jobs (4)
- # reveal (33)
- # rewrite-clj (3)
- # shadow-cljs (5)
- # sql (10)
- # tools-deps (4)
- # vim (7)
- # xtdb (151)
Hello. Can I check if datomic entity have any link on it somewhow? Links may be in a lot or resources so it would be hard to hardcode all the possible attributes to check.
I choosed (*seq* (*d/datoms* db :vaet eid))
and seems it works, even for cardinality many attributes
I just want to implement a logic if there are any links I'l mark entity as deleted
(by setting its field) but if there are no links - just retruct it from db
Something like
[:find (count l?)
:where
[?e :worker/id 1018]
[?l _ ?e]]
but this blank doesn't work...hi everyone, what do you think, which way of date comparison is faster in datomic query?
[(.after ^java.util.Date ?exp ^java.util.Date ?now)]
or
[(> ?exp ?now)]
"The predicates `=`, `!=`, `<=`, `<`, `>`, and `>=` are special, in that they take direct advantage of Datomic's AVET index. This makes them much more efficient than equivalent formulations using ordinary predicates."
thanks @U963A21SL