On Wednesday, January 9, 2013 6:56:06 AM UTC-8, Rodrigo Rosenfeld Rosas wrote: > > Yes, I understand, but maybe the performance hit would be smaller than > the other simple alternative (limiting concurrent requests to available db > connections through Database.synchronize Rack middleware). > > But I guess there isn't any after_checkout hook, right? >
There isn't, but that's basically what the connection_validator extension does. So take a look at that plugin's implementation if you want to figure out how to run code on each checkout. Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/sequel-talk/-/5i3WHCfM_rIJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
