feat: document that Backends are not thread safe, and provide multi-thread recipes/mechanics #10346
Open
1 task done
Labels
feature
Features or general enhancements
Is your feature request related to a problem?
ibis Backend instances are not thread safe (which makes sense as DBs generally have a concept of "connections" which can't be shared by multiple threads simultaneously).
Current docs don't explain this so its easy to cause a hard crash if you're experimenting, and an API to workaround it would be very helpful
See unit test below which uses memtable in multiple threads. Running this code either causes a segfault or deadlock.
What is the motivation behind your request?
No response
Describe the solution you'd like
While its not possible to share connections between threads, it would be great if:
What version of ibis are you running?
9.5.0
What backend(s) are you using, if any?
duckdb
Code of Conduct
The text was updated successfully, but these errors were encountered: