Fork me on GitHub
#datomic
<
2018-03-16
>
Datomic Platonic16:03:39

does re-transacting the same schema on top of an old one cause any damage? on client-pro 0.8.14 it causes the number of datoms to increase even though contents are same...

Datomic Platonic16:03:09

our second question is how to connect the peer api to a sql-backed server: we're getting a :db.error/unsupported-protocol :sql error

Datomic Platonic16:03:26

(we have been able to succesfully connect to the same sql-backed peer server using the client api, though)

JJ17:03:53

Your datoms increase because new transactions are being recorded, transactions being themselves entities

JJ17:03:30

by the map response, I don't think new schema datoms are being added or replaced, I just see a new tx datom

JJ17:03:16

Of course, an expert here needs to verify this 😉

JJ17:03:00

so no damage is my guess

Datomic Platonic17:03:59

@devicesfor interesting, our understanding was that if you transacted [user :likes 🍕] twice, the number of log/history datoms would increase but the number of datoms in the (d/db conn) current db would stay the same... confusedparrot

marshall17:03:56

You get an additional transaction entity

marshall17:03:01

which would have a txInstant

marshall17:03:06

so at least 1 more datom

marshall17:03:33

but if your schema is exactly the same, Datomic’s redundancy elimination would remove any other datoms

Datomic Platonic17:03:28

@marshall interesting... thanks

Datomic Platonic17:03:50

@marshall do you know if the datomic-free api can connect to the sql backend peer? we're getting connection errors (we're trying to hook into the same postgres-backed api in dev and production, and the producton client api is working fine but the free dev api is not working)

marshall17:03:14

no, the free protocol is only for Datomic Free use with local storage

marshall17:03:38

if you have a Starter (or Pro) license, you should use that for a sql-backed instance

marshall17:03:49

(that is, you should use the pro peer library)

Datomic Platonic17:03:58

@marshall when we include [com.datomic/datomic-free "0.9.5656"] we can only see the datomic.client.api namespace -- is there another maven artifact for the peer library?

Datomic Platonic17:03:51

oops, meant to say [com.datomic/client-pro "0.8.14"]

Datomic Platonic17:03:19

sorry, we found them in the tarball (i guess they're not in the maven site because of the closed source nature of the project...)

marshall19:03:04

@clojurians873 Correct - the peer library can be installed from the downloaded zip with bin/maven-install or you can get it from the private maven repo with the credentials listed in your http://my.datomic.com account