diff options
| author | Denis Ledoux <dle@odoo.com> | 2019-08-22 11:29:38 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2019-09-11 07:55:17 +0000 |
| commit | 3d1c924cffd839c076d9bacaf8bab9d995aee01e (patch) | |
| tree | f9b0929cfd8f14ddc7f4056d530a95473f4b0f8c /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 0e028de72ea0f49586790b580774bac203a8ed96 (diff) | |
[FIX] fields.py: improve computation time of records having a different value in cache
Instead of using a filtered with `cache.get`,
use a dedicated method in the Cache class to get
the records having a different value in cache then asked.
This is mainly to avoid the creation of intermediate
`browse` of 1 record, when doing `for rec in self`
in `filtered`.
Creating browses is costly, and avoiding it leads
to performance gains.
The dedicated method `get_records_different_from`
loops on the record ids, instead of on browse records
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
