First thank you @konrad.kuehne for the new version this monday!!!
Is there an ideomatic way to work with uuids as refs?
I think that would solve a lot of otherwise complicated issues.
yes.
Yeah, I thought about that too but int as an entity ID is hard wired right now in datoms and also in some comparator functions.
(I did extend the compare protocol in hitchhiker-tree to uuids)
Would it be that easy? Will the indeces still work? That would make so many things easier that involve exporting and importing, whether for migration purposes or just to change the schema.
the perfect dream would be to have triples
someuuid :attribute otheruuid
accepted as type ref.let me think about that a little bit, but I'll definitely add that to the possible features for the next release.
I did thought about this as well, IIUC you want to use UUIDs as entity IDs, am I correct?
I think we'd also need to make possible for :db/id
to be of the UUID type, so we'd need to tweak the spec to accept UUIDs as well https://github.com/replikativ/datahike/blob/7b70edb7ec7ff7c8fbcc2907d069a3f02866db31/src/datahike/schema.cljc#L5