diff options
| author | Rémy Voet (ryv) <ryv@odoo.com> | 2020-12-04 12:49:48 +0000 |
|---|---|---|
| committer | Rémy Voet (ryv) <ryv@odoo.com> | 2020-12-22 14:09:48 +0000 |
| commit | 0fe078de458add5d0a56dc7ed95af21510da6490 (patch) | |
| tree | fcb3ffb0df001ee51e7a09c8c7edf329b1c2f934 /doc/reference/javascript_cheatsheet.rst | |
| parent | 8d658abc9c60149b0ac63772cdb76dcbd8080cde (diff) | |
[FIX] stock_account: fix performance of `_get_in_move_lines`
A `stock.move` can contain thousands of `move_line_ids` (when tracked
by SN). The union of recordset (`|=`) doesn't scale well due
to the N² complexity (for 10000 SML to validate,
). Replace recordset union
by `OrderedSet` of ids + browse (linear complexity).
Before for 10000 SML to validate:
- the `_get_in_move_lines` take 14% time in the pyflame
After in the same condition:
- the `_get_in_move_lines` isn't present anymore in the pyflame
opw-2347525
Diffstat (limited to 'doc/reference/javascript_cheatsheet.rst')
0 files changed, 0 insertions, 0 deletions
