Closed JakubOboza closed 5 months ago
Hi @JakubOboza - there is no good reason to be using with_raw_connection
. Generally we want to mirror as much as possible what is happening in the PG adapter. Feel free to open a PR
My question was from 2 Feb but You kinda did introduce with_raw_connection at the end of Feb (29 Feb) in this commit. It looks good now. You can close this one.
Rails 7.1 introduced new approach to syncing.
I found that connections now can get stale in long running workers like sidekiq and adapter will not automagically reconnect just serve stale connection (You start getting ssl connection exceptions etc and PG::ConnectionBad, PG::UnableToSend ).
Is there any reason to not use
with_raw_connection
for things like query that wraps async_exec ????