diff options
| author | Arnold Moyaux <arm@odoo.com> | 2020-07-31 15:35:10 +0000 |
|---|---|---|
| committer | Arnold Moyaux <arm@odoo.com> | 2021-01-11 09:18:31 +0000 |
| commit | 74ea87d0a354b7414afb76d98ed39ecde45a8fb1 (patch) | |
| tree | 6818856a297a6865fb3c6a43bea91575b4553a4e /doc/python3.rst | |
| parent | 609e2f4427082431b56aa8f999d74ed9d39db653 (diff) | |
[FIX] stock: Add index for free reservation
Free reservation is called each time an extra quantity is
used on a move (and for each immediate transfer). It means
that the function is called many times on a database with an
inventoy activity. Also _free_reservation method do a search
on fields that are not indexed, and is slow on large database.
This index is specific to _free_reservation.
On a live database with an important stock, the queries dropped from 265ms
to 1.5ms.
closes odoo/odoo#64311
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Diffstat (limited to 'doc/python3.rst')
0 files changed, 0 insertions, 0 deletions
