09 2018 档案

mysql优化
摘要:查询sql语句的运行时间 show profiles;使用这个语句,首先要开启profiling,默认不开启,set profiling = 1;开启;使用完之后关闭; show profile cpu for query 2;对第二个查询语句进行查看cpu时间,cpu可以换成其他参数 查询到sql 阅读全文

posted @ 2018-09-19 17:24 EchoBao 阅读(123) 评论(0) 推荐(0)

选择和快速排序
摘要://选择排序 public function index(){ $arr = array(10,5,245,23,543,67,45,37,86,235,25,15); for($i = 0;$i < count($arr) - 1;$i++){ $minindex = $i; for($j = $ 阅读全文

posted @ 2018-09-11 11:07 EchoBao 阅读(108) 评论(0) 推荐(0)