Follow mekdigital on Twitter

Save memory using class caching!

When performances become a real issue you can start looking around in your code and optimize a lot. This model was previously fetching team name and nickname from the database, but those values never changed. 

published on 30 Aug

Comments (1)

Sep 01, 2010
keithkay said...
Very elegant solution. This strikes me a good example of modeling your data based on the real world properties of that data (MLB teams which rarely change team names).

Leave a comment...