diff options
| author | Yannick Tivisse <yti@odoo.com> | 2017-08-14 10:15:53 +0200 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2017-08-14 15:02:52 +0200 |
| commit | fd089ee467bd3270e1c7d842f98817e43e20df9f (patch) | |
| tree | 9079148181133aaf080e6084f8875871257347d3 /addons/web/static/src | |
| parent | a2361e23ea95c308ac7576c614c0a1938707def0 (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')
0 files changed, 0 insertions, 0 deletions
