1. Sort your development log.If a database query is only run a few times, let AR handle it. If one is being run a 1000 times then we should pull it out and tweak it.
2. Pull the SQL from the logRails has already done the hard work for us, right?
3. Tweak the SQLStick the tweaked DB queries in your models and things should move along nicely...