SELECT `shop`.*, `addvalue_products_group_device`.`device_id`, `addvalue_products_group_device`.`group_id`
FROM `shop`
LEFT JOIN `addvalue_products_group_device` ON shop.id = addvalue_products_group_device.device_id
WHERE `group_id` IS NULL
AND `shop`.`owner` = ''
LIMIT 20
检查后发现连表没有建索引,建立索引后由3s->10ms