[image: photo_2021-10-28_01-52-51.jpg]
I run bin/console (irb) on my production server, it return false, thanks 

在2021年10月27日星期三 UTC+8 上午2:41:08<Jeremy Evans> 写道:

> 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/0812a343-1f0b-4344-a6d9-024c9375c01bn%40googlegroups.com.

Reply via email to