Displaying 1 result from an estimated 1 matches for "_copies_".
Did you mean:
_copied_
2007 Jul 05
6
Rails, background threads, ActiveRecord
...thread doesn''t actually use any Rails-type classes, Rails
theoretical lack of thread-safety should be irrelevant, right? This
should work fine. Correct me if I''m wrong.
But the next part is---what if the Thread does need to use ActiveRecord.
Am I asking for trouble? Should I make _copies_ of my individual
ActiveRecord instances to give to the thread, to make sure my background
thread isn''t operating on the very same ActiveRecord object that a Rails
thread (or another background thread might be?)? Or is this not
necessary? Anything else I should be worried about?
In genera...