设为首页 - 加入收藏  
您的当前位置:首页 >数据库 >老司机也必须掌握的MySQL优化指南 正文

老司机也必须掌握的MySQL优化指南

来源:汇智坊编辑:数据库时间:2025-11-05 02:02:18
老司机也必须掌握的MySQL优化指南
复制mysql> explain partitions selectcount(1) from user_partition where id in (1,老司2,3,4,5);  +----+-------------+----------------+------------+-------+---------------+---------+---------+------+------+--------------------------+ | id | select_type | table          | partitions | type  | possible_keys | key     | key_len | ref  | rows | Extra                    |  +----+-------------+----------------+------------+-------+---------------+---------+---------+------+------+--------------------------+ |  1 | SIMPLE      | user_partition | p1,p4      | range | PRIMARY       | PRIMARY | 8       | NULL |    5 | Using where; Using index |  +----+-------------+----------------+------------+-------+---------------+---------+---------+------+------+--------------------------+ 1 row inset (0.00 sec)  1.2.3.4.5.6.7.

1.2714s , 17449.5703125 kb

Copyright © 2025 Powered by 老司机也必须掌握的MySQL优化指南,汇智坊  滇ICP备2023006006号-2

sitemap

Top