Commits

Anonymous committed 36addb1

set flush in config file

  • Participants
  • Parent commits 2b6055a

Comments (0)

Files changed (2)

File moai/tools.py

     count = 0
     ignore_count = 0
     error_count = 0
-    flush_threshold = 10000
+    flush_threshold = int(config.get('forcedflush', '10000'))
     for content_id in provider.get_content_ids():
         count += 1
         try:

File settings.ini

 database = sqlite:///moai-example.db
 provider = file://moai/example-*.xml
 content = moai_example
+forcedflush = 10000
 
 [server:main]
 use = egg:PasteScript#wsgiutils