The problem could be with ActiveRecord performance.
Rails 2.3.5
puts Benchmark.measure{5000.times{User.find :first, :conditions => ["id
= ?", (rand * 1000 + 1).to_i]}}
1.500000 0.100000 1.600000 ( 2.371361)
Rails 3.0
puts Benchmark.measure{5000.times{User.find :first, :conditions => ["id
= ?", (rand * 1000 + 1).to_i]}}
8.160000 0.160000 8.320000 ( 15.330955)
Is this a known problem?
--
Posted via http://www.ruby-forum.com/.
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.