@yukihiro_matz @evanphx @headius is overriding thread-local variable methods (e.g. Thread#[]) completely crazy? https://github.com/mperham/sidekiq/issues/318 …
@evanphx @yukihiro_matz @headius it's one reason yes. I'd like for thread locals to be "actor locals" inside actors
-
-
@bascule@yukihiro_matz@headius So add Actor#[]. I am sad there is no way to access the non-Fiber aware locals. -
@evanphx@yukihiro_matz@headius how do I deal with e.g. ActiveRecord that already uses Thread#[]? -
@bascule@yukihiro_matz@headius I'd rather you monkey patch AR. -
@evanphx@yukihiro_matz@headius well, I've at least been talking to@tenderlove about fixing AR so it doesn't need thread locals -
@bascule@headius@evanphx@yukihiro_matz not sure we can ever get completely away from thread locals. e.g. http://thierryroussel.free.fr/java/books/martinfowler/www.martinfowler.com/isa/registry.html … -
@tenderlove@headius@evanphx@yukihiro_matz why can't you check out and return connections on demand from a connection manager singleton? -
@bascule@headius@evanphx@yukihiro_matz and look up by current thread object id? -
@tenderlove@headius@evanphx@yukihiro_matz you could ask the connection manager for a new connection on a query-by-query basis...
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.