DBInterface.jl icon indicating copy to clipboard operation
DBInterface.jl copied to clipboard

DBInterface.@prepare is not threadsafe

Open mattwigway opened this issue 8 months ago • 0 comments

DBInterface.@prepare uses a global Dict on DBInterface that stores prepared statements for all connections. I think this means that DBInterface.@prepare is not threadsafe even if the different connections are being used in different threads, because modification of Julia dicts is not threadsafe.

mattwigway avatar Aug 20 '25 23:08 mattwigway