[Checkins] SVN: relstorage/trunk/relstorage/adapters/packundo.py Reduce the batch size to ease pressure on the database.

Shane Hathaway shane at hathawaymix.org
Thu Feb 3 02:56:16 EST 2011


Log message for revision 120073:
  Reduce the batch size to ease pressure on the database.
  

Changed:
  U   relstorage/trunk/relstorage/adapters/packundo.py

-=-
Modified: relstorage/trunk/relstorage/adapters/packundo.py
===================================================================
--- relstorage/trunk/relstorage/adapters/packundo.py	2011-02-03 07:55:30 UTC (rev 120072)
+++ relstorage/trunk/relstorage/adapters/packundo.py	2011-02-03 07:56:15 UTC (rev 120073)
@@ -138,7 +138,7 @@
 
         for oid in keep_list:
             batch.append(oid)
-            if len(batch) >= 10000:
+            if len(batch) >= 1000:
                 upload_batch()
         if batch:
             upload_batch()



More information about the checkins mailing list