On Sat, Oct 23, 2021 at 9:24 AM Billy Zheng <vil...@gmail.com> wrote:
> Ruby 3.1 will make ruby fiber scheduler, which introduced in ruby 3.0, > the official non-block io and concurrency solution, more mature and > completely, but, as mention by Samuel Williams @ioquatix, who is the > author of async, in this video. > > https://youtu.be/Y29SSOS4UOc?list=LL&t=1406 > > activerecord use one connection per thread, because of this, multiple > independent fiber > on the same thread will be using the same underlying connection, this can > cause problems because multiple fibers could incorrectly share a > transaction, this is kind of a design fault of activerecord. > > so, i just curious if sequel exists a similar issue, and if is, if there > is a plan to solve this, and how to do it. > You can use the fiber_concurrency extension to support this in Sequel: https://sequel.jeremyevans.net/rdoc-plugins/files/lib/sequel/extensions/fiber_concurrency_rb.html 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 sequel-talk+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sequel-talk/CADGZSSfbKzs-ZDJazjjDFYFz6JiBhr1DjTRYSr27VLCBnErZeg%40mail.gmail.com.