Sql语句查询慢原因排查和优化方法,及原理总结
1.原因排查
命令:explain sql
查询分析结果的说明:可以看这篇文章
命令:
1.set profiling = 1; //开启操作记录分析
2.show profiles; //查看最近所有的执行sql统计,主要是操作耗费的时长
3.show profile [params…] [for query id] //查询id对应的sql的详细过程耗时记录
不知者无畏,全知者无畏
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true