[fixes] repost stock: commit after every 20

This commit is contained in:
Nabin Hait 2013-05-20 12:19:57 +05:30
parent d37ac68f1b
commit 031b7b3069

View File

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