Does ActiveRecord cater for updating multiple records based on some
criteria without getting chatty with the database?
I am currently doing something like the following:
for vehicle in
:conditions => [“renewed_on <= ?”, Time.new - 86400])
vehicle.renew() #this updates a date column and saves
I want to improve the performance of this and am going to execute a
single custom SQL statement unless there is an ActiveRecord way.
Thanks for any help,