mozilla/affiliates — pull request #52 by Osmose (2011-10-14 16:42:45+00:00)
Title: Click optimization

This pull request does a few things:

* Denormalizes click totals on the badgeinstance model to reduce the amount of ClickStats join magic we need to get click totals.
* Caches the 1 query on affiliate links so that they can be served without hitting the DB at all.
* Fix tests.