Fork me on GitHub
#crux
<
2020-06-27
>
euccastro01:06:49

Why does the Get Started guide at https://opencrux.com/docs#_introduction_2 has you supplying a :crux.kv/db-dir for the first standalone in-memory node? I've just checked that that tutorial works fine without that

refset11:06:03

It's so that you can, if you wish, write out the index to disk before closing the node to persist the data. But yes it's not strictly required, see https://github.com/juxt/crux/blob/5a3860f5d01332982fb01f2ed5b65a5b0c57988a/crux-core/src/crux/kv.clj#L34

👍 1
refset11:06:17

The docs need clarification, admittedly 🙂

euccastro23:06:31

Thanks!

🙏 1
euccastro01:06:59

i.e., if I create in-memory nodes for e.g. tests, should I pass a :crux.kv/db-dir or is there no point?