1. infrae
  2. moai

Commits

"Jas...@ubib.eur.nl>"  committed 36addb1

set flush in config file

  • Participants
  • Parent commits 2b6055a
  • Branches default

Comments (0)

Files changed (2)

File moai/tools.py

View file
     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

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