This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-05
Channels
- # bangalore-clj (1)
- # beginners (99)
- # boot (108)
- # cider (15)
- # clara (4)
- # cljs-dev (12)
- # cljsjs (37)
- # cljsrn (4)
- # clojure (110)
- # clojure-italy (2)
- # clojure-spec (12)
- # clojurescript (168)
- # cursive (1)
- # datomic (24)
- # graphql (6)
- # hoplon (5)
- # jobs-discuss (2)
- # keechma (21)
- # mount (5)
- # off-topic (140)
- # om (2)
- # parinfer (37)
- # planck (6)
- # re-frame (4)
- # reagent (9)
- # rum (2)
- # spacemacs (4)
We default to squuids by default, but that doesn't stop us from using namespace uuids (v5) where we have a hash-like use case. We don't notice any operational difference but we're not very sensitive to performance or space
would be nice to have the link be just the ID, unguessable, without having to include a special token
all the other uses of uuids will be relatively small in number - pretty much all interesting publicly accessible entities in this system can have this security mode
so i was trying to decide if i should use squuid + token, or random uuid for this - there’s probably no other (immediate) usecase for uuids & most other internal entities can just use datomic long ids
if you are doing direct lookup it's probably fine. the downside of not using squuids is fragmentation
thinking about it more, a special token is probably the right way to go anyway - as you may want to revoke it (ie change the link, or create a new one)
so, seqs, locality, etc suffer; indexing takes longer and generates more garbage (disk space)
if you don't have scanning queries you're probably fine with the read-side downsides of fragmented index
yeah - that was basically my thought process, which is why i wanted an excuse to just use totally random 🙂
Can someone point me to the recipe for running datomic console with the free transactor? For me the console keeps throwing an exception when I try to run any query.
I’m launching with bin/console -p 8080 dev datomic:
. This is inside a docker container, where transactor
is a linked container.
The exception is
console_1 | ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ119007: Cannot connect to server(s). Tried with all available servers.]
console_1 | at org.apache.activemq.artemis.core.client.impl.ServerLocatorImpl.createSessionFactory(ServerLocatorImpl.java:799)
console_1 | at datomic.artemis_client$create_session_factory.invokeStatic(artemis_client.clj:114)
console_1 | at datomic.artemis_client$create_session_factory.invoke(artemis_client.clj:104)
@gonewest818 as far as I remember I had to mess with the alternative host to get it to work last time I tried. It wasn’t the free protocol but the dev protocol, although I guess your problem might be similar
in transactor.properties
protocol=free
host=0.0.0.0
alt-host=127.0.0.1
port=4334
ok I changed that to alt-host=transactor
and I think it’s resolved
@gonewest818 sorry I was afk. Glad you got it fixed! 🙂