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.
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.
Thank you, I will try that.
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.
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.
I noticed Migration and Backup in the documentation, should I just use those?
Fyi the readme links the old version of hh-tree I think
It should likely point to https://github.com/replikativ/hitchhiker-tree