We have (or will have) a lot of values in the database that won't change often and will be used on every single request. These will be stored in memcache, but we should store them closer to the app servers too. Answer: memoize them. The django decorator is here: http://code.djangoproject.com/browser/django/trunk/django/utils/functional.py#L118 When we do change the values (this is primarily for log levels and cron priorities at first) it would be nice if the value changed immediately. I don't know if we can do that in this case, but that should be investigated too.
8 years ago