diff options
| author | Odoo's Mergebot <xmo+roboto@odoo.com> | 2019-09-13 10:44:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-13 10:44:22 +0200 |
| commit | 4926f03e6fb87eef4d64cc8779abafb7f3713cfa (patch) | |
| tree | 34e1eb72e7522cc336af310e1417dc3f9016ca07 /odoo/fields.py | |
| parent | 5dc97ee7daa1772f1b895976b0eb17425de11c52 (diff) | |
| parent | c8f2924c66f32e8cc601fefda938875d5444f88f (diff) | |
[MERGE] mail: improve record creation with batch operations
PURPOSE
Optimize record creation in mail module by adding batch operations.
SPECIFICATIONS
Compute default followers once at creation for all created records. As the
same value is computed for each new record computing it once is sufficient.
Log default creation message in batch when having no specific subtype at
create. It allows to speedup record creation. For 1000 records, these specific
lines take
* 2.1s before the commit
* 1.2s after the commit
LINKS
PR #36654
Task 2070602
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'odoo/fields.py')
0 files changed, 0 insertions, 0 deletions
