Files
odoo_source/addons/uom
Mathieu Walravens d42b06aea1 [PERF] uom: Improve reference check for large UoM categories
This commit improves the performance of the reference check for large
categories of Units of Measure (UoM).
After this commit, the number of UoMs in the category is counted using
the read_group method instead, resulting in faster performance.

Benchmark:
| Nbr of UoM | Before | After |
| ---------: | -----: | ----: |
|          0 |    0ms |   0ms |
|          1 |    1ms |   1ms |
|         30 |    6ms |   3ms |
|        200 |    7ms |   2ms |
|      18000 |  900ms |  15ms |

opw-3775689

closes odoo/odoo#162540

X-original-commit: 9f47341de352d08a8e325d14f25af8221bb392cb
Signed-off-by: Quentin Wolfs (quwo) <quwo@odoo.com>
Signed-off-by: Walravens Mathieu (wama) <wama@odoo.com>
2024-04-19 23:49:51 +00:00
..
…