Tuesday, April 30, 2024
1 change
Enhancements to existing features
This update fixes a critical memory issue that prevented users from viewing large stock location lists. By optimizing how the system loads inventory data, memory usage has been reduced by nearly 63% (from 1.6 GB to 600 MB), allowing the system to handle over 1.2 million inventory records without errors.
Original PR description
### Before this commit Can't navigate through the Locations list view as it would throw a Memory Error if too many stock.quants records. ### After this commit We prefetch only necessary fields to compute the value and the currency of the quants. ## Peak Memory Usage | stock.quants | Before | After | |-------------|---------|--------| | 1.2 million |1.6 GB | 600 MB | ## References opw-3887471 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr