一、問題現象
奇怪的問題:
數據庫版本:Mysql 8.0.19
表字段:id(主鍵),accountId(btree普通索引),....,imgCotent(big blob),imgThumbnail(blob)....
記錄數:15000左右;
表數據大小:700M左右
二、執行以下查詢:
select count(*) from tablename
執行時間:11秒多;
select count(id) from tablename
執行時間:同上,11秒多;
select count(accountId) from tablename
執行時間:僅有 0.068秒!!!!!!
哪位高人能給指點一下?