Merge lp://qastaging/~openerp-dev/openobject-addons/7.0-pos-performance-cbi into lp://qastaging/openobject-addons/7.0
Status: | Needs review |
---|---|
Proposed branch: | lp://qastaging/~openerp-dev/openobject-addons/7.0-pos-performance-cbi |
Merge into: | lp://qastaging/openobject-addons/7.0 |
Diff against target: |
730 lines (+334/-194) 4 files modified
point_of_sale/static/src/js/models.js (+0/-17) product/pricelist.py (+299/-153) product/product.py (+33/-22) product/product_pricelist_demo.yml (+2/-2) |
To merge this branch: | bzr merge lp://qastaging/~openerp-dev/openobject-addons/7.0-pos-performance-cbi |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Eneldo Serrata (community) | Needs Fixing | ||
Fabien (Open ERP) | Disapprove | ||
Olivier Dony (Odoo) | surface | Needs Fixing | |
Review via email: mp+148396@code.qastaging.launchpad.net |
Description of the change
Fixes the algorithm for pricelist calculation to drastically improve performance.
This is still a work-in-progress (API needs to be corrected not to break the stable API), but currently brings down the time to load 28k products in the POS interfaces (that caches the prices) from 15min to 12sec.
Any feedback appreciated.
Unmerged revisions
- 8605. By Chris Biersbach (OpenERP)
-
[FIX] Now the fall-back to 8.3 is also functional again
- 8604. By Chris Biersbach (OpenERP)
-
[IMP] Added a comment
- 8603. By Chris Biersbach (OpenERP)
-
[IMP] Confusing read and search is a surefire sign you do not drink enough coffee...
- 8602. By Chris Biersbach (OpenERP)
-
[IMP] Removed some remaining debug code
- 8601. By Chris Biersbach (OpenERP)
-
[IMP] This takes into account the comments by ODO... various refactorings and small fixes
- 8600. By Chris Biersbach (OpenERP)
-
[IMP] Changed some method signatures and call to be in sync with the situation before my fixes
- 8599. By Chris Biersbach (OpenERP)
-
[FIX] small bug in the fall-back code
- 8598. By Chris Biersbach (OpenERP)
-
[IMP] Refactored the codeto include the fallback gor PostgreSQL prior to 8.4
- 8597. By Chris Biersbach (OpenERP)
-
[IMP] last small glitch, now all tests should go through. Also removed the debug code in the JS
- 8596. By Chris Biersbach (OpenERP)
-
[IMP] Another small improvement
The WITH RECURSIVE query requires postgres 8.4, so we might keep the original query for OpenERP 6.1 or slightly improve it. Without it the POS can still load 28k products in 40s.