OBS- need to run migrations! Refactored attributes to use a slightly different internal storage format for faster access. Also set up caching of all attribute data, so subsequent reads of an attribute will not hit the database anymore, and writes will re-cache.

This commit is contained in:
Griatch 2012-02-14 23:40:16 +01:00
parent 8b5f3628ab
commit a32aebaa0e
12 changed files with 560 additions and 152 deletions

View file

@ -249,6 +249,7 @@ class ScriptDB(TypedObject):
#attribute_model_name = "ScriptAttribute"
typeclass_paths = settings.SCRIPT_TYPECLASS_PATHS
attribute_class = ScriptAttribute
db_model_name = "scriptdb" # used by attributes to safely store objects
# this is used by all typedobjects as a fallback
try: