This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-27
Channels
- # announcements (2)
- # asami (5)
- # beginners (22)
- # biff (2)
- # cider (1)
- # clara (3)
- # clojure (17)
- # clojure-europe (7)
- # clojurescript (29)
- # core-async (2)
- # datahike (1)
- # fulcro (11)
- # gratitude (2)
- # integrant (2)
- # lsp (6)
- # music (2)
- # observability (1)
- # off-topic (36)
- # polylith (4)
- # quil (2)
- # reagent (15)
- # tools-deps (36)
- # xtdb (16)
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?
mostly I'm trying to avoid the footguns that come with asynchronous access to a disk-backed DB
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
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
gotcha