Database Optimization for Rails Apps 20th Nov 2007 by Gwyn Morfey Summary Use STRAIGHT_JOIN if MySQL is doing something silly MySQL Datetimes are not slow MyISAM is much, much faster than InnoDB Consider MySQL partitioning; it's not hard Watch out for background optimisation and query caching Log everything you do, and why The reporting application I'm working on does a date-range select against a