From b9669de3ff5c0cb5a6eb8b25383295de59a8ec45 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 17 May 2013 12:21:13 +0530 Subject: [PATCH] [patch] repost_stock: commit after every 50 --- patches/may_2013/repost_stock_for_no_posting_time.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/may_2013/repost_stock_for_no_posting_time.py b/patches/may_2013/repost_stock_for_no_posting_time.py index 04ceae5ecae..b4d52ec4fc5 100644 --- a/patches/may_2013/repost_stock_for_no_posting_time.py +++ b/patches/may_2013/repost_stock_for_no_posting_time.py @@ -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") \ No newline at end of file