[patch] repost_stock: commit after every 50

This commit is contained in:
Nabin Hait 2013-05-17 12:21:13 +05:30
parent f826b93a75
commit b9669de3ff

View File

@ -29,6 +29,6 @@ def execute():
except:
pass
i += 1
if i%100 == 0:
if i%50 == 0:
webnotes.conn.sql("commit")
webnotes.conn.sql("start transaction")