Merge lp:~alhashash/openobject-addons/trunk-faster-move-line-reconcile into lp:openobject-addons
Status: | Needs review |
---|---|
Proposed branch: | lp:~alhashash/openobject-addons/trunk-faster-move-line-reconcile |
Merge into: | lp:openobject-addons |
Diff against target: |
59 lines (+25/-21) 1 file modified
account/account_invoice.py (+25/-21) |
To merge this branch: | bzr merge lp:~alhashash/openobject-addons/trunk-faster-move-line-reconcile |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+219457@code.launchpad.net |
Description of the change
When reconciling or updating large number of account move lines the process is extremely slow. Profiling shows that the bottleneck is account.
This patch uses SQL directly and bypasses the ORM in account.
Unmerged revisions
- 9458. By Mohammad Alhashash
-
Enhance SQL query
- 9457. By Mohammad Alhashash
-
Fix typos and add comment.
- 9456. By Mohammad Alhashash
-
Use SQL directly and bypass the ORM in account.
invoice. _get_invoice_ from_line( ) and account. invoice. _get_invoice_ from_reconcile( ) for much faster account_move_line reconcilliation and update. Up to two orders of magnitude faster when updating/ reconciling a lot of move lines.