From 54f924c313f4f2050549665ca608172a4564abab Mon Sep 17 00:00:00 2001 From: Emilio Tagua Date: Thu, 18 Nov 2010 11:17:57 -0300 Subject: Enable IM in performance script unless IM=disabled is set when running it. --- activerecord/examples/performance.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/activerecord/examples/performance.rb b/activerecord/examples/performance.rb index c4ce361b5d..e6bbb3977a 100644 --- a/activerecord/examples/performance.rb +++ b/activerecord/examples/performance.rb @@ -92,6 +92,8 @@ else `#{mysqldump_bin} -u #{conn[:username]} #{"-p#{conn[:password]}" unless conn[:password].blank?} #{conn[:database]} exhibits users > #{sqlfile}` end +ActiveRecord::IdentityMap.enabled = true unless ENV['IM'] == "disabled" + RBench.run(TIMES) do column :times column :ar -- cgit v1.2.3