This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-20
Channels
- # announcements (1)
- # babashka (74)
- # beginners (84)
- # bristol-clojurians (3)
- # cider (2)
- # clara (14)
- # cljdoc (18)
- # cljsrn (7)
- # clojure (29)
- # clojure-australia (4)
- # clojure-europe (34)
- # clojure-italy (3)
- # clojure-nl (5)
- # clojure-seattle (1)
- # clojure-uk (33)
- # clojuredesign-podcast (2)
- # clojurescript (33)
- # code-reviews (17)
- # core-async (10)
- # cursive (8)
- # datomic (21)
- # depstar (45)
- # dirac (4)
- # duct (10)
- # emacs (1)
- # fulcro (8)
- # jackdaw (2)
- # jobs (1)
- # kaocha (11)
- # leiningen (2)
- # off-topic (8)
- # pathom (35)
- # pedestal (3)
- # protorepl (13)
- # rdf (39)
- # re-frame (23)
- # reagent (2)
- # releases (1)
- # remote-jobs (6)
- # reveal (2)
- # rewrite-clj (18)
- # shadow-cljs (51)
- # sim-testing (2)
- # spacemacs (2)
- # tools-deps (37)
does datomic mem-db support tuple type ? i tried to add a tuple field and it barfed so not sure ?
lib version? where is that found ? we use cloud db for production
you dont .. you use one or the other. looks like dev-local has some thing dev-local-tu for doing test like things where you blow away the db around each test, which is what we want. but i think mem-db does not support tuple
if you use a peer-server with on-prem you could do it, but that depends on the peer lib’s version. There was also this: https://github.com/ComputeSoftware/datomic-client-memdb
that the one we using, but we just run that locally , when on prod using cloud db , we switch between one and the other
so, that depends on an on-prem lib, and that on-prem lib’s version is what’s dictating whether tuples are supported or not (most likely)
on-prem 0.9.5927 added tuples: https://docs.datomic.com/on-prem/changes.html#0.9.5927
I imported a prod db via dev-local/import-cloud. Is there a way to get a breakdown of the size of the db.log file?
I'm also curious if import-cloud provides a way to import the current version of the database with no historical retracts.
So I have an entity with a child with cardinality many, and I query for all entities where one of these child entities matches a value. I tried
'(or
(and
[?e :child-element-key ?ste]
[(.contains ^java.lang.String ?ste "value")]))
But that didn't work, is there another way to do this?this is generally how you do it; it’s going to be difficult to diagnose your problem without a complete example. You could try simplifying the query with specific data to see what’s going wrong. e.g.:
(d/q '[:find ?e
:where
(or
(and
[?e :child-element-key ?ste]
[(.contains ^java.lang.String ?ste "value")]))]
[[1 :child-element-key "value1"]
[2 :child-element-key "nope"]])
=> #{[1]}