通过多个联接优化MySQL查询

时间:2019-03-04 15:06:17

标签: mysql query-optimization

当记录超过100000条时,加载时间太长了

 select meal_option_id,
            order_id, price,
            display_name,
            count, 
            deliveries.id
         from deliveries 
            inner join deliveries_meals
            on deliveries.id = deliveries_meals.delivery_id
            inner join meal_options
            on deliveries_meals.meal_option_id = meal_options.id

0 个答案:

没有答案