inaturalist/inaturalist — pull request #291 by pleary (2014-08-12 21:50:39+00:00)
Title: Enabled garbage collection profiling; saving more COUNT() queries; faste...

This enables GC::Profiling which can report data to be graphed in NewRelic. This commit fixes an issue where an :include parameter was growing iteratively, causing very large arrays to render slowly with .to_json. It also prevents some more unnecessary COUNT() queries