Fork me on GitHub
#datomic
<
2017-06-08
>
bbqbaron00:06:59

#punkbandnames

souenzzo04:06:31

@devth you can't change :db/valueType http://docs.datomic.com/schema.html#sec-5-3 I see somewhere, but not recommended: "If you really need to alter valueType, rename the attribute to a new ident, then create a new one with correct type"

pbostrom13:06:41

does anyone use conformity? https://github.com/rkneufeld/conformity I have a question about it's purpose:

In a more general sense, conformity allows you to declare expectations (in the form of norms) about the state of your database, and enforce those idempotently without repeatedly transacting schema, required data, etc.
Is there any harm in repeatedly transacting the schema? Isn't that operation already idempotent?

souenzzo17:06:27

when you have a big schema, is good to know all old migrations before do a new one. (yes, you can do it with git history, transaction log... but plain text is a good way šŸ˜‰ )

bbqbaron13:06:31

ooh! i do in fact use it

bbqbaron13:06:44

technically yes, but any transaction has side effects, even if they may be negligible or acceptable

bbqbaron13:06:15

i havenā€™t tested the ultimate effects, but you will leave a swath of extra transaction datoms behind if you just run your schema file on startup

bbqbaron13:06:52

it may also be true that some forms of schema migrations could be destructive and should never be repeated, although i have none of that type

bbqbaron13:06:56

maybe something like ā€œensure that this schema has exactly six entities with :user/adminā€ or something similarly contrived that you may not always want to be true, but may wish to ensure that a db starts with?

val_waeselynck15:06:10

@pbostrom shameless plug: you may want to check out the README of datofu (https://github.com/vvvvalvalval/datofu#managing-data-schema-evolutions) for a guide on migrations. HTH, feedback welcome

pbostrom15:06:30

cool, thanks

val_waeselynck15:06:43

The internals are essentially the same as conformity

uwo19:06:18

is it possible to give a peer read only access?

bbqbaron19:06:15

i donā€™t think so; datomic didnā€™t have any permissioning notion last i checked

az19:06:14

Hi all, trying to start up the console but I am getting: java.lang.IncompatibleClassChangeError. Any ideas? Using the demo pro version. The transactor is running System started datomic:

marshall19:06:09

@aramz Are you using datomic FREE? There is a known issue with Datomic FREE and console. Weā€™re working on a fix. If you register for Datomic starter (which is free to use) the Datomic PRO edition has no classpath issue with using console.

az19:06:39

I was using the starter pro

marshall19:06:45

what version?

az19:06:41

datomic-pro-0.9.5561.50

marshall19:06:06

hrm. I tested that yesterday and it started fine

marshall19:06:14

what command are you running to start console?

az19:06:04

as per the console readme, Iā€™ve tried both: bin/console -p 8080 alias transactor-uri-no-db and bin/console -p 8080 mbrainz datomic:

marshall19:06:32

might be worth trying a clean download/unzip of the distribution

az19:06:26

does the pro already come with the console? I downloaded the console separately and ran the install-console

marshall19:06:39

youā€™ll want to use the one packaged with pro

marshall19:06:44

it is already in there

az19:06:47

ah ok got it

az19:06:53

thank you

val_waeselynck20:06:41

@uwo maybe connect to the transactor then kill it :p