when the vregistry is initialized, no need to call vreg.set_schema (else we trigger appobjects registration twice. This allows significant startup speedup.
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 21 Jan 2010 10:21:09 +0100
changeset 4301 59cb004db889
parent 4300 03430023ce82
child 4302 8bedd7506d6e
when the vregistry is initialized, no need to call vreg.set_schema (else we trigger appobjects registration twice. This allows significant startup speedup.
web/application.py
--- a/web/application.py	Thu Jan 21 10:19:38 2010 +0100
+++ b/web/application.py	Thu Jan 21 10:21:09 2010 +0100
@@ -242,7 +242,7 @@
         if not vreg.initialized:
             self.config.init_cubes(self.repo.get_cubes())
             vreg.init_properties(self.repo.properties())
-        vreg.set_schema(self.repo.get_schema())
+            vreg.set_schema(self.repo.get_schema())
         # set the correct publish method
         if config['query-log-file']:
             from threading import Lock