Is there a more efficient way to get all the datoms out of a database than this?
(defn db-datoms
[db]
(let [graph (d/graph db)]
(node/find-triple graph '[?e ?a ?v])))Efficient? No
That’s as fast as I could possibly extract them
Oh, that’s not my function
Okay just checking. It doesn’t have to be too crazy fast because I only have to do it once on load.
asami.core/export-data
Oh nice!
I was grep’ing for something with “datoms” in the name and missed that one.
Thank you
To be honest, I don’t really use datoms. I just provide them in some APIs because I’m trying to make Asami look like Datomic 😜
I may not either…I’m experimenting with something with a 99% chance of being thrown away hehe
most experiments are 🙂