diff options
| author | Victor Feyens <vfe@odoo.com> | 2020-02-11 12:20:39 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-04-21 12:28:52 +0000 |
| commit | 3f6625ef134c35ad8fab00ca99b451a7dfabee08 (patch) | |
| tree | 1fd4dbc9de252a887fe91ed5b1cc7780bea6025a /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 2457e7f6f45b23118ce73c47112d60802411cc4b (diff) | |
[IMP] link_tracker, mass_mailing: uuse read_group instead of computing len of one2many fields
PURPOSE
Several counter fields are performed inefficiently. They use compute methods
using length of 2many fields instead of making use of more efficient ORM
methods like read_group.
SPECIFICATIONS
There may be a lot of clicks linked to a given link tracker. Compute the count
of clicks in batch with a read_group to improve performance.
Same for utm campaign mailing count performances.
Some missing indexes are added to speedup queries.
LINKS
Task ID 2196182
PR #44662
Co-Authored-By: Victor Feyens <vfe@odoo.com>
Co-Authored-By: Thibault Delavallee <tde@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
