Is there a way to restore into dev-local a backup taken from datomic-free?
Not at present. There a number of differences in core attributes. You would have to write a program that reads the log from one database, keeps track of entity ids, drops or alters unsupported things (e.g. the bytes values type) and transacts into the other database.
Thanks Stu 🙂 I'll look into that
Good evening everyone!! Is there a way to manipulate arrays with Datomic? (unfortunately I can’t use tuples, as they’re limited to 8 scalars).
I think that limit only applies to heterogenous tuples?
https://docs.datomic.com/on-prem/schema.html#homogeneous-tuples vs https://docs.datomic.com/on-prem/schema.html#heterogeneous-tuples
Well I thought so too, but apparently I am unable to transact tuples larger than 8 values using :db.type/tuple
:
(d/transact conn [{:db/ident :weights
:db/valueType :db.type/tuple
:db/tupleType :db.type/double
:db/cardinality :db.cardinality/one}])
(d/transact conn [{:weights [0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8]}])
(d/transact conn [{:weights [0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9]}])
https://docs.datomic.com/on-prem/schema.html#tuples
says: A tuple is a collection of 2-8 scalar values
that is unfortunate
consider using bytes and Double/doubleToLongBits
?
I’ll give this a try thank you!!
or DataOutputStream
(http://java.io class)
Thanks a lot
dev-local can migrated to the peer server correct?
guess it's just a matter pointing the transactor to the data dir