最新
版块
发主题
搜索
我的

新闻数据达到14万,数据库开始卡

zqlhzc 2022-2-10 9386

新闻数据达到14万,数据库开始卡

点击链接后 IO磁盘高

SET timestamp=1644483567;

select m.* from sea_news m  where m.n_recycled=0 and m.tid in (82,83,84,85,86,87,88,89,90,91,92)  order by n_addtime desc LIMIT 0,6;

# Time: 220210 16:59:36

# User@Host: xxxxxxxxxx @ localhost [127.0.0.1]

# Query_time: 14.260497  Lock_time: 0.000507 Rows_sent: 6  Rows_examined: 170227

SET timestamp=1644483576;

select m.* from sea_news m  where m.n_recycled=0 and m.tid='55'  order by rand() desc LIMIT 0,6;


最后于 2022-2-10 被zqlhzc编辑 ,原因:
最新回复 (5)
  • 海洋 2022-2-15
    0 引用 2
    服务器配置?数据库版本?哪家的服务器?
  • hongonly 2023-1-18
    0 引用 3
    海洋 服务器配置?数据库版本?哪家的服务器?
    我现在也遇到这个问题。高配置。数据库5.7
  • 海洋 2023-1-19
    0 引用 4
    hongonly 我现在也遇到这个问题。高配置。数据库5.7
    强烈 建议使用mysql5.5或者5.6,不建议使用5.7以及更高版本。
  • hongonly 2023-1-19
    0 引用 5
    海洋 强烈 建议使用mysql5.5或者5.6,不建议使用5.7以及更高版本。
    还是卡,打开差不多一分钟
  • 海洋 2023-1-22
    0 引用 6
    hongonly 还是卡,打开差不多一分钟
    换个好点的服务器
返回
发新帖