cldwalker / datomico

Use datomic with intention revealing names. Ease of use and sticking to datomic's principles are encouraged.
MIT License
49 stars 7 forks source link

performance improvements needed #8

Closed boxxxie closed 11 years ago

boxxxie commented 11 years ago

I have observed that when i make a large amount of models it takes a very long time for them to be transacted. There needs to be a way to declare a bulk creation of models so that they can be put in a single transact, or so that datomico handles the many transacts in a programmer friendly way

eg:

(datomico.api/bulk-creation
   (repeatedly 1000 my-rand-model-maker))
cldwalker commented 11 years ago

Can you give the specific example that's taking too long to transact or at least which fn you're calling? I've begun to extract the transaction data generating functions from the transactions themselves in the model namespace. I need to cut a new release to make them available. For examples, see any of the *-tx fns e.g. create-tx. I've been happy so far with just generating transaction data from different tx fns, concating them and then doing the transact manually. I'm not eager to make the above dsl yet. demonic has gone that route and I'm not seeing benefit.

cldwalker commented 11 years ago

Closing. Feel free to answer if you're still interested.