盘绰网教程:是一个免费提供流行视频软件教程、在线学习分享的学习平台!

Mysql调优之profile的使用办法

时间:2023/9/7作者:未知来源:盘绰网教程人气:


[摘要]+------------------------+-------+开启profile:开启profile之后,执行要分析的sql语句:mysql> select t1.*,t2.action...
+------------------------+-------+
  • 开启profile:

  • 开启profile之后,执行要分析的sql语句:

    mysql> select t1.*,t2.action from div_forum_thread as t1 left join (select a.* from div_forum_threadmod as a,(select tid,max(dateline) as dateline from div_forum_threadmod group by tid) as b where a.tid=b.tid and a.dateline=b.dateline) as t2 on t1.tid=t2.tid where t1.displayorder>=0 and t1.fid in (47,49) and t1.tid > 100318 and (t1.authorid =7683017 or t2.action<>'DWN' or t2.action is null ) order by t1.dateline desc limit 20;
  • 查看生成的profile信息:

    mysql> show profiles; +----------+------------+--------------------------------------------------------------------------------------------------------+
  • 关键词:  Mysql调优之profile的运用办法





    Copyright © 2012-2018 盘绰网教程(http://www.panchuo.com) .All Rights Reserved 网站地图 友情链接

    免责声明:本站资源均来自互联网收集 如有侵犯到您利益的地方请及时联系管理删除,敬请见谅!

    QQ:1006262270   邮箱:kfyvi376850063@126.com   手机版