Use #joins for search in the admin in the case of a large number of variants (#4990)

Switch from includes to joins as includes can cause performance problems on large data sets, as it loads too much data.