This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-20
Channels
- # architecture (25)
- # beginners (68)
- # cider (10)
- # clara (3)
- # cljs-dev (90)
- # cljsrn (16)
- # clojure (132)
- # clojure-austin (7)
- # clojure-berlin (3)
- # clojure-czech (1)
- # clojure-dusseldorf (1)
- # clojure-greece (5)
- # clojure-italy (39)
- # clojure-spec (5)
- # clojure-uk (78)
- # clojured (2)
- # clojurescript (92)
- # community-development (6)
- # cursive (7)
- # data-science (1)
- # datascript (14)
- # datomic (32)
- # duct (8)
- # emacs (5)
- # figwheel (3)
- # fulcro (47)
- # hoplon (12)
- # jobs (10)
- # luminus (16)
- # lumo (5)
- # off-topic (1)
- # onyx (2)
- # parinfer (47)
- # pedestal (6)
- # re-frame (10)
- # reagent (2)
- # reitit (61)
- # ring (8)
- # ring-swagger (16)
- # shadow-cljs (116)
- # sql (17)
- # utah-clojurians (2)
- # vim (1)
hello, anyone knows how to set peer property such as datomic.objectCacheMax
with leiningen? Specifically when running a development build using lein run
. Leiningen's :jvm-opts
doesn't seem to work.
@poernahi that’s precisely what we’re doing
:jvm-opts ["-server"
"-Xms3584m"
"-Xmx3584m"
"-Ddatomic.objectCacheMax=1792m"
"-Ddatomic.memoryIndexMax=448m"
"-Ddatomic.peerConnectionTTLMsec=15000"
"-Ddatomic.txTimeoutMsec=300000" …]
hmm ok, maybe I formatted it incorrectly
thanks!
it was working after all. Turns out I was getting memory errors due to missing datomic.memoryIndexMax
config. According to the docs https://docs.datomic.com/on-prem/system-properties.html, this should be a transactor property. But it seems to affect peer as well.
As for context, I was trying to configure a development environment using as few memory as possible
Hi everyone, I would like to do an equality comparison in my query. I got it working when both of the idents I want to compare are present. The issue is that one of the idents is new in the version I'm about to release. If the entities don't have that ident I just want to return false. I'm struggling to come up with the right query to do this. Here's the interesting part of what I have:
[?c :comment/question ?q]
(or-join [?c ?q]
(not [?c :comment/creator])
(and
[?q :question/creator ?question-creator]
[?c :comment/creator ?comment-creator]
[(= ?question-creator ?comment-creator) ?from-asker]))
@favila I need to return ?from-asker
as true/false rather than restrict the set that gets returned
Then your “not” branch needs to bind it ani it needs to be included in the or-join bindings. Your error is because of this extra dangling binding
could someone help me? i'm not sure if this is a bug, or something i'm doing incorrectly
clj
(d/q '[:find ?e .
:in $ ?uuid
:where [$ ?e _ ?uuid]]
(db/db) "5a269adc-72c4-483d-abc4-b9b70707db81")
=> []
(d/entity (db/db)
[:resource/uuid "5a269adc-72c4-483d-abc4-b9b70707db81"])
=> #{{:db/id ...}}
i assume the first query to return the same entity, as using the entity api
are we not able to elide attributes like this?
:resource/uuid is indexed, and unique
@captaingrover - likely get-else would help get you there - so if :question/creator is the new ident and sometimes doesn’t have value - put [(get-else $ ?q :question/creator "NONE") ?question-creator]
in and you’ll get values set - in this case “NONE” - you could set that to be whatever makes sense.
[{(:user/address :limit nil) [:address/code]}]
. But it's returning just 1000
(there is 10000
on my scenario)