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...
1 comment:
Thanks Barry, using the find_by_sql is exactly what I did just now to decrease the time to run my tests from over 10 minutes to 24 seconds...
In the words of a certain jazz-program presenter: "Nice..."
Post a Comment