I am trying to use the Async gem along with ActiveRecord models. I imagine that many developers may be trying to do something similar. But I can't find any documentation about how to use Async with ActiveRecord.
In particular:
What is the best way to re-establish connections in Async threads/fibers?
Do you need to set config.active_support.isolation_level to fiber?
Any gotchas to avoid?
It seems like some official documentation for this would be very helpful for the community, and if I missed something I'd appreciate you pointing me to it. Thanks!
I am trying to use the Async gem along with ActiveRecord models. I imagine that many developers may be trying to do something similar. But I can't find any documentation about how to use Async with ActiveRecord.
In particular:
config.active_support.isolation_level
tofiber
?It seems like some official documentation for this would be very helpful for the community, and if I missed something I'd appreciate you pointing me to it. Thanks!