[IMP] mail: improve blacklist search performance
When the blacklist table is filled with multiple thousands of records
searching the `is_blacklisted` field leads to a domain like
`[('id', 'in', [thousands_of_ids])]`. This can create a multiple megabytes
sql query.
Using inselect allows to avoid that issue.
Task-3328210
closes odoo/odoo#135458
Related: odoo/enterprise#47393
Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
Please register or sign in to comment