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
sandqvist 2020-11-17T11:27:11.083300Z

How can I insert my existing history data? Using alter-var-root with datahike.tools/get-time looks like it might work but is there a cleaner way? My use case is I have partial (mostly single-property) updates with timestamps for multiple entities and I need to recreate their full states in the past.

kkuehne 2020-11-18T09:53:05.087300Z

You may use the https://cljdoc.org/d/io.replikativ/datahike/0.3.2/api/datahike.api#load-entities function for that. I created a small gist for you https://gist.github.com/kordano/8ef2486d83c9a2f10542151e290ec360 to show its functionality.

sandqvist 2020-11-18T12:02:40.087800Z

Thank you, I will try that.

kkuehne 2020-11-17T16:46:09.084Z

How is your data structured? We have a library that could replay historical data formatted as a list of tx meta data and eavt vectors to datahike.

sandqvist 2020-11-17T17:08:14.084200Z

It is basically independent eav updates. I get them in groups but the attributes are not dependent so they do not even have to be grouped in transactions.

sandqvist 2020-11-17T17:10:56.084400Z

I noticed Migration and Backup in the documentation, should I just use those?

mpenet 2020-11-17T22:59:11.085600Z

Fyi the readme links the old version of hh-tree I think

mpenet 2020-11-17T22:59:46.086200Z

It should likely point to https://github.com/replikativ/hitchhiker-tree