Batch up your ActiveRecord "touch" operations for better performance. ActiveRecord::Base.delay_touching do ... end. When "end" is reached, all accumulated "touch" calls will be consolidated into as few database round trips as possible.
Home Page:https://rubygems.org/gems/activerecord-delay_touching
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool