diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2017-12-20 18:03:44 +0100 |
|---|---|---|
| committer | Nicolas Martinelli <nim-odoo@users.noreply.github.com> | 2018-01-29 13:58:18 +0100 |
| commit | 5c5098f74070b2f312f4b9d1418971e6808ff335 (patch) | |
| tree | c0c03cd974c20ad337fb54211628698f2eec0984 /addons/web/static/tests/fields/basic_fields_tests.js | |
| parent | 6d682cea25616eec2553f292ff4fceeb1d10d511 (diff) | |
[FIX] stock: performance issue inventory at date
On a production database with ~10000 products and multiple stock
locations, uunning the 'Inventory at date' tales ~50 minutes. Most of
the time is spent in the loop populating `group_lines` thanks to
multiple search queries.
We get rid of this loop by selecting the stock history lines and making
the match between these lines and the `read_group` result manually. On
the reference database, the duration falls to ~30 seconds.
Based on preliminary work by amoyaux
opw-803460
Diffstat (limited to 'addons/web/static/tests/fields/basic_fields_tests.js')
0 files changed, 0 insertions, 0 deletions
