This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-11
Channels
- # arachne (5)
- # beginners (28)
- # boot (59)
- # cider (10)
- # cljs-dev (10)
- # cljsrn (10)
- # clojure (58)
- # clojure-brasil (2)
- # clojure-czech (9)
- # clojure-miami (1)
- # clojure-poland (2)
- # clojure-russia (12)
- # clojure-spec (16)
- # clojure-sweden (1)
- # clojure-taiwan (1)
- # clojure-uk (77)
- # clojurebridge (3)
- # clojurescript (108)
- # cursive (5)
- # datomic (25)
- # defnpodcast (2)
- # editors (1)
- # events (1)
- # funcool (24)
- # hoplon (37)
- # instaparse (1)
- # lein-figwheel (7)
- # leiningen (7)
- # luminus (3)
- # off-topic (9)
- # om (90)
- # onyx (88)
- # proton (3)
- # protorepl (9)
- # re-frame (30)
- # reagent (23)
- # rethinkdb (2)
- # untangled (33)
- # vim (1)
- # yada (6)
Since the recommended transactor upgrade approach is to stand up the new version and then kill the old ones (letting the new ones fail over), is there a way to do that without losing the ability to transact data during the failover delay? Or do you just have to schedule a bit of downtime for all your systems?
Got my answer in a support ticket. The key was reading and fully understanding this: http://docs.datomic.com/ha.html#peer-recovery-time. TL;DR is you either design your whole system to tolerate this or yes, you need scheduled downtime.
hey all, the schema documentation says "You can also retract optional schema attributes with :db.alter/attribute.” Does anyone know how to do this? There don’t appear to be any examples.
@ethangracer: This section of the docs: http://docs.datomic.com/schema.html#schema-alteration discusses altering schema. Further down in this section there is an example that uses retraction to ‘unset’ isComponent
@marshall: thanks, i’m looking for something a bit different. I think by optional schema attributes they mean things like isComponent. I want to take one attribute name and effectively ‘merge’ it with another. So I have :category/name
that I want to now be equivalent to :tag/name
. So I was hoping to retract the :category/name
attribute, and either replace it with :tag/name
or make new entries on the entity called :tag/name
The key point there is “optional schema attributes”
:db/ident
is a required attribute
I was afraid you were gonna say that 😄
is removing the uniqueness attribute a bad idea?
http://docs.datomic.com/schema.html#renaming-an-identity There is a way to ‘rename’ an attribute
yeah I saw that, unfortunately I want to rename it to an attribute name that already exists
so we’re getting a :db.err/unique-conflict
ah, in that case you’ll want to transition your data from one attribute to the other
oh boy. alright, thanks for the help!
and if at all possible, do the alteration in staging or dev prior to rolling it out in prod
thanks, those are both absolutely happening!
@marshall: so, am I right in thinking that it’s impossible to remove the old name from the schema? but from now on, consistently use the new one?
Well! Far as I can tell, Aleph (latest) and Datomic (latest): no go in the same JVM: fundamentally incompatible versions of netty-all.
@zentrope I'm looking into the compatibility issue and potential solutions I'll update on the Google group thread when I have something to report