An exercise in rails performance tuning.