[cwctl] make cubicweb-ctl versions lighter (closes #4002158)
authorJulien Cristau <julien.cristau@logilab.fr>
Tue, 17 Jun 2014 12:03:30 +0200
changeset 9875 d4f6f4c77e9c
parent 9873 1257e909d25e
child 9891 3386fd89c914
[cwctl] make cubicweb-ctl versions lighter (closes #4002158) Set config.quick_start to avoid unnecessary appobjects and schema loading.
cwctl.py
--- a/cwctl.py	Mon Sep 23 14:55:56 2013 +0200
+++ b/cwctl.py	Tue Jun 17 12:03:30 2014 +0200
@@ -835,6 +835,8 @@
         config = cwcfg.config_for(appid)
         # should not raise error if db versions don't match fs versions
         config.repairing = True
+        # no need to load all appobjects and schema
+        config.quick_start = True
         if hasattr(config, 'set_sources_mode'):
             config.set_sources_mode(('migration',))
         repo = config.migration_handler().repo_connect()