This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-18
Channels
- # 100-days-of-code (10)
- # announcements (2)
- # aws (3)
- # beginners (120)
- # boot (6)
- # calva (6)
- # cider (22)
- # cljsrn (3)
- # clojure (145)
- # clojure-greece (1)
- # clojure-italy (7)
- # clojure-nl (24)
- # clojure-russia (90)
- # clojure-spec (21)
- # clojure-uk (80)
- # clojurescript (175)
- # core-async (1)
- # datomic (17)
- # emacs (8)
- # ethereum (5)
- # figwheel (1)
- # figwheel-main (140)
- # fulcro (137)
- # jobs (6)
- # jobs-discuss (3)
- # luminus (3)
- # mount (1)
- # nyc (3)
- # off-topic (39)
- # onyx (1)
- # pedestal (1)
- # re-frame (21)
- # reagent (13)
- # shadow-cljs (60)
- # spacemacs (25)
- # test-check (4)
- # tools-deps (14)
- # uncomplicate (3)
- # vim (18)
In datomic on-prem, why does the transactor need the peer role? This is painful because I’d like multiple services/applications to be given different roles but the transactor only accepts one. Or am i confusing the peer server with a peer in an application? Is this role just for the peer server? Ideally I’d like to use the peer library over the client library so I don’t think I want to run a peer server.
are you talking about AWS roles? but yes, confusingly, the peer server and the peer library are two separate things, if you don't want clients you don't need the peer server
@lockdown- Yea AWS IAM roles. The transactor configuration requires a single peer iam role https://docs.datomic.com/on-prem/storage.html#dynamodb-transactor-properties
But if I had two services/application with separate roles (I want to give permissions to different things but share datomic access) how would I set this if the transactor configuration only accepts one?
Official docs https://docs.datomic.com/cloud/schema/schema-change.html say
You cannot change the :db/valueType of an attribute
but I found a workaround to achieve this via renaming.
I had a :node/children
which was EDN string and I migrated it to list of ref with 2 transactions:
[{:db/id :node/children
:db/ident :node/legacy-children}]}
[{:db/ident :node/children
:db/valueType :db.type/ref
:db/cardinality :db.cardinality/many}]
It works just fine, but I worry what are downsides of this approach.@U4BEW7F61 changing the meaning of a name breaks existing users (rule 6 at http://blog.datomic.com/2017/01/the-ten-rules-of-schema-growth.html). That is the biggest downside.
@U072WS7PE thanks for the answer, while I'm fine with that (meaning wasn't actually changed, it's the same data but now I just return it to client "as is" without clojure.edn/read-string
, there are no datomic specific technical downsides, right?
correct
Hi all, I’m getting a noob error when transacting:
java.lang.ClassCastException: clojure.lang.PersistentArrayMap cannot be cast to clojure.lang.Named
Say, I upgraded my local dev transactor from 0.9.5561.62 to 0.9.5703 and now when I try to connect to it with a peer, I'm seeing this message:
org.h2.jdbc.JdbcSQLException: Remote connections to this server are not allowed, see -tcpAllowOthers [90117-171]
@U08QZ7Y5S sounds like https://forum.datomic.com/t/important-security-update-0-9-5697/379
Aha, look like that's it, thanks! I'll take a look.
This is running inside a docker container. Has anything changed with regards to this? I didn't see anything obvious in the release notes