datahike

https://datahike.io/, Join the conversation at https://discord.com/invite/kEBzMvb, history for this channel is available at https://clojurians.zulipchat.com/#narrow/stream/180378-slack-archive/topic/datahike
magra 2019-09-13T12:08:52.022800Z

First thank you @konrad.kuehne for the new version this monday!!!

magra 2019-09-13T12:27:13.024500Z

Is there an ideomatic way to work with uuids as refs?

magra 2019-09-14T10:54:36.000100Z

I think that would solve a lot of otherwise complicated issues.

magra 2019-09-14T10:54:43.000300Z

yes.

kkuehne 2019-09-14T15:45:15.001700Z

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.

magra 2019-09-13T12:28:40.025Z

(I did extend the compare protocol in hitchhiker-tree to uuids)

magra 2019-09-14T11:00:07.000500Z

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.

magra 2019-09-14T11:02:30.000700Z

the perfect dream would be to have triples

someuuid :attribute otheruuid
accepted as type ref.

kkuehne 2019-09-14T15:46:13.001900Z

let me think about that a little bit, but I'll definitely add that to the possible features for the next release.

👍 2
purrgrammer 2019-09-13T14:22:48.025100Z

I did thought about this as well, IIUC you want to use UUIDs as entity IDs, am I correct?

purrgrammer 2019-09-13T14:23:51.025300Z

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