原创 MySQL 優化實例

1:數據庫的存儲引擎是innodb 表中有1千多萬數據,如何優化select count(*) from tab where 1;    解決方案: 1)取出最大的自增ID,並記錄緩存  maxID