I was hoping that the Rails' QueryCache might cache the ActiveRecord
objects it creates and not just the SQL result set, but some
experimentation shows that this is not the case.  For example:

>> ActiveRecord::Base.cache do
?>   u = User.find(:first)
>>   u.name="z"
>>   u = User.find(:first)
>> end

returns a clean copy of the object.

My question is, is there a way to cache the ActiveRecord objects as
well?  I have read that their construction is time consuming.  I found
the plugin ActiveRecordContext (http://github.com/dcadenas/
active_record_context) but it was last updated *way* back in 2007, so
I wasn't sure it is the best thing to use (or if it even works with
the current Rails).

Thanks,
      --Paul

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to