odoo/odoo#199350
Created by fw-bot
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- ci/l10n: (runtime 1s)
- label
- odoo-dev:master-master-notifpimp-opti-tde-418133-fw
- head
- 2d3ff4c216206850727733850aa7b178dff88095
- merged
- 7 months ago by Marketing, Thibault Delavallee (tde)
odoo/odoo | odoo/enterprise | |
---|---|---|
saas-18.2 | #198933 | #80120 |
saas-18.3 | ||
saas-18.4 | ||
19.0 | ||
master | #199350 | #80192 |
[FW][IMP] mail, various: improve performance of recipients computation
Since #198095 templates enable suggested recipients fetch when
computing recipients automatically. This made some query counters
higher than before, hence adding some performance tests.
After check, using suggested recipients actually creates partners for
additional recipients. This was not the case with default recipients.
Additional queries come from creating partners notably.
Some performance tests are added then profiled. Some performance
improvements are done in this PR to lessen number of irrelevant queries.
Those are related to: prefetching, partner creation. Some other fiximps
may come in a near future, notably with company_check on properties
fields (under investigation).
See sub commits for more details.
Forward-Port-Of: #198933