论坛风格切换
  • 1929阅读
  • 0回复

云搜索手机客户端云平台等问题统计 [复制链接]

上一主题 下一主题
离线太史慈
 

发帖
766
金币
626
威望
556
只看楼主 倒序阅读 使用道具 楼主  发表于: 2012-10-24
[问题]aCloud/version/phpwind/customized/ver.customized.thread.php

  1. $query = $GLOBALS ['db']->query ( "SELECT t.tid,t.fid,t.author,t.authorid,t.subject,t.postdate,t.lastpost,f.name as forumname,t.hits,t.replies FROM pw_threads t LEFT JOIN pw_forums f USING(fid) WHERE t.fid=" . S::sqlEscape ( $fid ) . " $sqlLimit AND t.ifcheck=1 AND t.topped=0 ORDER BY t.lastpost DESC LIMIT " . intval ( $limit ) );

这个SQL两个毛病
1。$sqlLimit = $offset > 0 ? ' AND t.lastpost < ' . intval ( $offset ) : '';没必要限制时间,限制的话导致慢查询
2。t.topped=0这个索引在8.7里面已经废弃了。新的为specialsort。

双双反应这个不是云搜索的,是手机客户端的,囧。
[问题]云搜索搜不到新帖。
[问题]已经删除的帖子,还是出现在搜索的列表里,这个之前说是在云搜索二期里会解决的。
[优化]云搜索后台没有关闭按钮,导致检测问题是谁出问题不方便。

mclientapi/api/forum.class.php
  1. $query = $this->db->query("SELECT tid,subject,authorid,author,postdate,lastpost,lastposter,hits,replies FROM pw_threads WHERE fid=" . S::sqlEscape($fid) . " AND ifcheck='1' AND topped='0' ORDER BY lastpost DESC " . S::sqlLimit($offset, $limit));

慢查询哦
要改specialsort


[url=http://www.phpwind.com]phpwind[/url]
快速回复
限100 字节
批量上传需要先选择文件,再选择上传
 
提到某人:
选择好友
上一个 下一个