Use EXIST in one2many when possible
It is usually a better idea to use EXIST instead of IN when using a subquery unless the number of records returned is relatively small.
The proposed patch will introduce a configuration option to define the threshold to choose between the two strategies and the modification of the convert_domain
function of the O2M.
Since we introduce the configuration option, it can be used also to discriminate for the M2O field in place of the target_search
parameter (which is not used in any modules).