search for: after_rollback

Displaying 2 results from an estimated 2 matches for "after_rollback".

2010 Dec 07
0
A couple of patches
...ed to use the cache interface, but actually caching data is not desired. https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/6128 Reduce memory bloat in ActiveRecord transactions This patch reduces memory bloat in ActiveRecord transactions. With the introduction after_commit and after_rollback callbacks references are kept to all records updated in a transaction until the transaction completes. This can lead to memory bloat with large transactions. The code change replaces the references to weak references unless the objects implement these callbacks. This allows the garbage collector t...
2010 Aug 24
0
Rails 3 Observer: No support for after_commit?
Rails 3 adds after_commit and after_rollback callbacks, but it appears they are not available as methods in an Observer. Is that the way it''s supposed to be, an oversight, or am I doing it wrong? Thanks. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to t...