len:1237
len:11
len:6
zz22zz技术论坛
首页| 论坛| 消息
主题:云搜索手机客户端云平台等问题统计
太史慈发表于 2012-10-24 17:10
[问题]aCloud/version/phpwind/customized/ver.customized.thread.php

$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$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
回帖(0):

全部回帖(0)»
最新回帖
收藏本帖
发新帖