You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 22, 2021. It is now read-only.
Regarding rails/rails#37070 I realised maybe it's possible for long running queries to overlap because the ConnectionPool is storing connections seemingly per-thread. So even if you start a transaction in different fibers, maybe it breaks.
# Retrieve the connection associated with the current thread, or call# #checkout to obtain one if necessary.## #connection can be called any number of times; the connection is# held in a cache keyed by a thread.defconnection@thread_cached_conns[connection_cache_key(current_thread)] ||= checkoutend
One option is to try and hijack the ConnectionPool - e.g. if spec[:connection_pool] is defined, use it.