ITeye博客

MySQL调优

alex09 · 2010-01-11 01:03 · mysql · 非技术 · MySQL · Markdown

最近有一个project是优化mysql的效率。 首先是select count() 和select(id) mysql> select count() from nim_acl_action; +----------+ | count(*) | +----------+ | 2230164 | +----------+ 1 row in set (20.73 sec) mysql> select count(id) from nim_acl_action; +-----------+ | count(id) | +-----------+ | 2230164 | +-----------+ 1 row in set (8.61 sec) 相差效率1.5倍

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。