摘要: 来看看手册中关于 OPTIMIZE 的描述: 原始数据 1,数据量 mysql> select count(*) as total from ad_visit_history; + + | total | + + | 1187096 | //总共有118万多条数据 + + 1 row in set 阅读全文
posted @ 2016-09-15 10:15 煮海焚天 阅读(50016) 评论(0) 推荐(5)
摘要: 如何开启慢查询日志? 在mysql配置文件my.cnf中增加 log-slow-queries=/var/lib/mysql/slowquery.log (指定日志文件存放位置,可以为空,系统会给一个缺省的文件host_name-slow.log)long_query_time=2 (记录超过的时间 阅读全文
posted @ 2016-09-15 10:06 煮海焚天 阅读(353) 评论(0) 推荐(0)
摘要: IDEA可以直接在setting中下载checkStyle和findBugs <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <version>3.0.4</ve 阅读全文
posted @ 2016-09-15 09:56 煮海焚天 阅读(614) 评论(0) 推荐(0)