-
- Downloads
[IMP] mail: use xmlid_to_res_id instead of ref in remaining places of mail
As explained in previous commit we can use xmlid_to_res_id instead of ref() which leads to some query gain. This commit update some other less important places: when setting activities as done and in the composer. This lead to a gain in tests involving activities and composer, including tracking triggering a template. On community runbot this leads to a gain of about 1K queries.
Showing
- addons/mail/models/mail_activity.py 1 addition, 1 deletionaddons/mail/models/mail_activity.py
- addons/mail/wizard/mail_compose_message.py 2 additions, 2 deletionsaddons/mail/wizard/mail_compose_message.py
- addons/test_mail/tests/test_performance.py 4 additions, 4 deletionsaddons/test_mail/tests/test_performance.py
Loading
Please register or sign in to comment