|
原因:多表联查的订单列表,多加的order_by占用了10秒左右的时间,以下为执行的sql语句
SELECT * FROM `zt_view_order` WHERE `shop_id` = '63' AND `order_status` != 33 LIMIT 15 用时1.43秒
SELECT * FROM `zt_view_order` WHERE `shop_id` = '63' AND `order_status` != 33 ORDER BY `id` DESC LIMIT 15 用时11.76秒
求大神解惑,谢谢谢谢谢谢谢谢!!! |
|