diff options
| author | Arnold Moyaux <arm@odoo.com> | 2019-11-28 15:38:06 +0000 |
|---|---|---|
| committer | Arnold Moyaux <arm@odoo.com> | 2020-01-09 15:59:12 +0000 |
| commit | bdc22803096b7d1071eee25c1c71ba6746ec5b18 (patch) | |
| tree | 0b1db54beac36830c9c1ce65c77fcfc25fa6f849 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 2e747cedf4faa194699456c13c48313c14daf8f8 (diff) | |
[REF] stock: perf orderpoint as batch
Currently orderpoint run one request at a time. However it's not
efficient since compute are some private methods could be executed
one time in batch instead of record by record.
The strategy in order to improve it is:
- Still cut the orderpoints in batch of 1000 (usefull when using a new
cursor with intermediate commit)
- For each batch of 1000, create a list of procurement values and run
them in batch (commit a2a6b099a4c1c99f4aa9e741442944e588a8f048 for more info)
- Each time a procurement exception is raised, catch the failing
orderpoint and rollback to the state before run. Remove the failing
order point from the current set and run it again.
- run method try to catch a maximum errors by continuing to process even it
finds error in order to stack them. It would avoid to run the same set
again and again each time an error is raised.
test_orderpoint_1 took 975s before this patch and 100s after.
Task: 1849912
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
