commit | b9669de3ff5c0cb5a6eb8b25383295de59a8ec45 | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Fri May 17 12:21:13 2013 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Fri May 17 12:21:13 2013 +0530 |
tree | 779c28b22a7175253dd993566330b8a9c3042c84 | |
parent | f826b93a75dc96edd463acbb826d1f1acd949407 [diff] |
[patch] repost_stock: commit after every 50
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 04ceae5..b4d52ec 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 @@ 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