asami 2021-10-27

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])))

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

I was grep’ing for something with “datoms” in the name and missed that one.

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 🙂

🧪 1