1
2
3
4
5
6
7
          # this appears superfulous but was added via: http://dev.rubyonrails.org/changeset/5637
          #
          # evidentally sqlite3 needs the connection reset between requests (to 
          # detect schema changes only?) so one would expect this lines impact on 
          # other databases to be minimal... however with sqlite3 there is a real
          # difference of 10req/s (from 40 down to 30) in my tests
          ActiveRecord::Base.clear_reloadable_connections! if defined?(ActiveRecord)