asami

respatialized 2022-02-27T16:47:03.185189Z

is there a certain type of java.util.concurrent.Executor that I should be using for the :executor arg in transact/`transact-async`? Obviously a lot will depend on the usage pattern of my application apart from Asami's own requirements, but I was wondering if there were any obvious pitfalls to avoid. should I be using a single-threaded executor, pool of fixed size, etc?

respatialized 2022-02-27T16:47:35.745899Z

mostly I'm trying to avoid the footguns that come with asynchronous access to a disk-backed DB

quoll 2022-02-27T16:50:07.759029Z

You're not likely to encounter any such things. Transactions are append-only and queries will only be executed against the post-transaction database once it's complete

quoll 2022-02-27T16:50:51.235219Z

The executor argument is just if you have one of your own that you want to use, rather than the usual one you’ll get from a future

respatialized 2022-02-27T17:05:27.993549Z

gotcha