Merge lp://staging/~rye/python-oops-tools/oopsloader-update-date-when-needed into lp://staging/python-oops-tools
Proposed by
Roman Yepishev
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Robert Collins | ||||
Approved revision: | 5 | ||||
Merged at revision: | 5 | ||||
Proposed branch: | lp://staging/~rye/python-oops-tools/oopsloader-update-date-when-needed | ||||
Merge into: | lp://staging/python-oops-tools | ||||
Diff against target: |
20 lines (+6/-4) 1 file modified
src/oopstools/oops/dboopsloader.py (+6/-4) |
||||
To merge this branch: | bzr merge lp://staging/~rye/python-oops-tools/oopsloader-update-date-when-needed | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Collins (community) | Approve | ||
Review via email: mp+80079@code.staging.launchpad.net |
Commit message
Tune dboopsloader to avoid pointless commits to the last-processed date marker.
Description of the change
Tune dboopsloader to avoid pointless commits to the last-processed date marker.
To post a comment you must log in.
.save does not do what you think it does :)
You need the .save, but what you want to avoid is the commits; that means:
- taking the ORM out of autocommit mode
- explicitly doing a commit (I suggest one every 5 seconds work)