On Tue, Oct 26, 2021 at 10:56 AM Billy Zheng <[email protected]> wrote:
>
> Thanks,
>
> i added this plugins, and test it on production, it still works.
>
> i use sequel_pg and pg gem on production, and change web server from puma
> to falcon.
>
> so, can you please tell me if there exists some special log or somethings
> to prove current work on per-fiber request mode?
>
DB.synchronize do |c|
Fiber.new do
DB.synchronize{|c1| p(c == c1)}
end.resume
end
This will return true if not using fiber_concurrency (since the connection
will be shared by multiple fibers of the same thread), but false with
fiber_concurrency (since the connection will not be shared by multiple
fibers of the same thread).
Thanks,
Jeremy
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sequel-talk/CADGZSSetQfs6k5t%3Dcom79rE5rqbND3kH4NaqrTTDP%2BNnzgb%3DaA%40mail.gmail.com.