
























2018-10-17 23:42 斌哥tobin 阅读(4061) 评论() 收藏 举报
SELECT ID,post_title, post_author FROM wp_posts ORDER BY ID LIMIT 100;
OK, Time: 0.023000s
SELECT * FROM wp_posts ORDER BY ID LIMIT 100;
OK, Time: 0.261000s
SELECT `ID` , `post_author` , `post_date` , `post_date_gmt` , `post_content` , `post_title` , `post_excerpt` , `post_status` , `comment_status` , `ping_status` , `post_password`, `post_name` , `to_ping` , `pinged` , `post_modified` , `post_modified_gmt`, `post_content_filtered`, `post_parent` , `guid`, `menu_order`, `post_type`, `post_mime_type`, `comment_count` FROM wp_posts ORDER BY ID LIMIT 100;
OK, Time: 0.231000s
覆盖索引就是从索引中直接获取查询结果,要使用覆盖索引需要注意select查询列包含在索引列中;where条件包含索引列或者复合索引的前导列
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。