>  For those who do not want to use a worker thread, I propose changing
>  Dataset#all to act as iterator if a block is given, so people can do:
>
>   Item.filter(:active => true).all do |i|
>     i.do_something
>     i.save
>   end

I like this as a compromise, but wouldn't it be possible to have
Sequel use multiple mysql connections intelligently whenever required?
Can we set some sort of 'in use' flag on a connection, and use another
connection from the pool when the existing connection has this flag
enabled?

  Aman Gupta

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to