Remove __melange_queries logging
It causes the local instance to become very slow, as it has to pickle
all queries. A better solution would be to store them in the per
request value store and then add middleware to store that data at
end-of-request.
--- a/app/soc/logic/models/base.py Wed Sep 09 22:28:46 2009 +0200
+++ b/app/soc/logic/models/base.py Sat Sep 12 01:22:03 2009 +0200
@@ -396,13 +396,6 @@
from google.appengine.api import memcache
from soc.logic import system
- if system.isDebug():
- queries = memcache.get('__melange_queries')
- if not queries:
- queries = []
- queries.append((self._model.__name__, filter, order))
- memcache.set('__melange_queries', queries)
-
if not filter:
filter = {}