diff options
| author | Yannick Tivisse <yti@odoo.com> | 2017-08-14 10:15:53 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2017-10-13 15:24:05 +0200 |
| commit | 26517172510bfff003e7f555aa63ab463334d05a (patch) | |
| tree | e91155956a85e8e8b97dd3d5f0f1f01d536915d2 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 51861e889ab7c8795cccc3eaca27b90b62ceb89c (diff) | |
[IMP] base_import: Defer parent computation after record creation/update
Currently when importing files, the parent left and right are recomputed on each record creation/update, which could lead to a lot a request.
This commit will defer the parent field recomputation to the end on the `load` function by recomputing the values from the MPTT and inserting directly the new values on the records.
Tested on a customer instance, this will reduce the execution time when importing a thousand stock.location from 15 minutes to several seconds.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
