我不得不告诉大家的MySQL优化“套路”

套路复制mysql> select * from t_message limit 10; ...省略结果集 mysql> show status likelast_query_cost; +-----------------+-------------+ | Variable_name | Value | +-----------------+-------------+ | Last_query_cost | 6391.799000 | +-----------------+-------------+ 1.2.3.4.5.6.7.8.9.