mongoid.mongolab.yml
258 Bytes
-
Enable the identity map for Mongoid. This allows subsequent finds for the same object to skip the DB and use an in-memory store of all retrieved records. In many cases this reduces the number of DB queries from _hundreds_ to a few tens. This is particularly noticable when showing lists of problems. Previously each `problem.app` reference caused a Apo.find() using the `app_id`, now it's an in-memory lookup.