Saturday, April 20, 2024
1 change · 17.0
Enhancements to existing features
This update improves the speed of checking unit of measure categories, especially for businesses with large catalogs. By optimizing how the system counts units in a category, processing time is reduced dramatically—from 900ms down to just 15ms for large datasets—resulting in faster system performance and better user experience.
Original PR description
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 Forward-Port-Of: odoo/odoo#157752