SELECT * FROM `customer` LEFT JOIN customer_info ON customer_info.customer_id = customer.id LEFT JOIN customer_group ON customer_group.id = customer.group_id LEFT JOIN vest_customer_relation ON vest_customer_relation.customer_id = customer.id WHERE `customer`.`deleted_at` IS NULL ORDER BY customer.id DESC LIMIT 10
EXPLAIN SELECT * FROM `customer` LEFT JOIN customer_info ON customer_info.customer_id = customer.id LEFT JOIN customer_group ON customer_group.id = customer.group_id LEFT JOIN vest_customer_relation ON vest_customer_relation.customer_id = customer.id WHERE `customer`.`deleted_at` IS NULL ORDER BY customer.id DESC LIMIT 10
EXPLAIN SELECT * FROM `customer` LEFT JOIN customer_info ON customer_info.customer_id = customer.id LEFT JOIN customer_group ON customer_group.id = customer.group_id WHERE `customer`.`deleted_at` IS NULL ORDER BY customer.id DESC LIMIT 10; EXPLAIN SELECT * FROM `vest_customer_relation` WHERE customer_id in (3,4,5,6,7,8,9,10,11,12)