diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-11-18 11:17:57 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-11-19 19:09:00 -0300 |
commit | 54f924c313f4f2050549665ca608172a4564abab (patch) | |
tree | 1fdaffcf430c99e8136a2e982e6bc323ea0656dc /activerecord | |
parent | b626f3e1ec033ef69ff7aeee1c11297079824db5 (diff) | |
download | rails-54f924c313f4f2050549665ca608172a4564abab.tar.gz rails-54f924c313f4f2050549665ca608172a4564abab.tar.bz2 rails-54f924c313f4f2050549665ca608172a4564abab.zip |
Enable IM in performance script unless IM=disabled is set when running it.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/examples/performance.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |