What I Learned Today

  • Stubbing out Paperclip is an easy way to speed up your tests.
  • MySQL indexes are smarter than they look sometimes. I removed a polymorphic association from a model today, expecting it to speed up performance, as only one other model was ever associating with this model. Ben helped me figured out why there was no performance increase: the previous index always had the same whatever_type, so the index optimized it away.

It's a short day: I took the afternoon off.

Published: 13 Mar 2009