This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-20
Channels
- # aleph (19)
- # aws-lambda (8)
- # bangalore-clj (1)
- # beginners (13)
- # boot (179)
- # cljs-dev (12)
- # cljsjs (2)
- # cljsrn (6)
- # clojure (174)
- # clojure-italy (14)
- # clojure-nl (2)
- # clojure-russia (172)
- # clojure-spec (29)
- # clojure-uk (22)
- # clojurebridge (10)
- # clojureremote (1)
- # clojurescript (79)
- # cursive (46)
- # data-science (1)
- # datascript (8)
- # datomic (18)
- # defnpodcast (2)
- # emacs (9)
- # events (6)
- # hoplon (11)
- # klipse (13)
- # lein-figwheel (1)
- # leiningen (1)
- # luminus (1)
- # lumo (88)
- # numerical-computing (1)
- # off-topic (24)
- # om (33)
- # onyx (58)
- # protorepl (8)
- # re-frame (10)
- # reagent (26)
- # ring (8)
- # ring-swagger (7)
- # rum (22)
- # spacemacs (25)
- # specter (5)
- # uncomplicate (37)
- # untangled (75)
- # vim (17)
- # yada (3)
@ezmiller77 Peerserver can’t delete or create databases. Since a single peerserver could be connected to multiple transactors/backend storages at once the semantics aren’t clear what ‘create’ would mean - which backend should it use for example?
@marshall thanks, I was starting to suspect that that was the case.
Question, though, the client api has these functions available in datomic.client.admin
. Why would these methods exist if they can’t be used. Is there another way t ouse the client library other than in combination with the peer-server?
“composite keys” seems to be a heavily discussed topic, I read the threads from 2015-16 on how to solve individual issues with custom implementation. Whats the current status on that? Are they considered or even possible as a feature? I would love to see “composite key upsert” and “composite lookup refs”.
you could make your own composite key attribute
lookup ref: [:my/key (pr-str [:foo :bar])]
you'd have to make sure you always update the composite key when you update the individual attributes though
I am trying to set the datomic.txTimeoutMsec property. Can you directly set it before you create the connection using, (System/setProperty "datomic.txTimeoutMsec" "1") I want to set it really low so that it will cause a timeout, but it doesn't seem to be changing the transaction timeout time.
@pesterhazy yea, currently I will need to funnel all composite key parts through one self-chosen encoded additional key attribute, with tx-fns and so on.
nottmey: if your composite keys are two longs, you can fit them in 4 bytes. (pr-str [a b])
however can be a string with 30 bytes, for example
@taylor.sando I think the datomic.txTimeoutMsec value is captured at static initialization time, so I don't think you can change it other than at the command line and have datomic see the new value.
@taylor.sando however, you can achieve the same effect with (deref (d/transact-async conn [,,,]) 1 nil)
and check for nill
@taylor.sando Or write a helper fn to deref+throw exception for you