我在php mysql服务器上运行我的代码占用了太多时间,因为数据在其中不应超过0.01秒... mycode在链接下面给出db是mysiam引擎其他表是innodb ...它是搜索页
$selecting = $db->query("
SELECT DISTINCT links.link_id AS link_id,title,description,url,fulltxt
,COUNT(links.title) AS title_count
,count
,MATCH(title) AGAINST(+'$query_star' IN BOOLEAN MODE) AS weight_t
,MATCH(url) AGAINST(+'$query_star' IN BOOLEAN MODE) AS weight_u
,MATCH(description) AGAINST(+'$query_star' IN BOOLEAN MODE) AS weight_d
,MATCH(keywords) AGAINST(+'$query_star' IN BOOLEAN MODE) AS weight_k
FROM links
INNER JOIN domains ON
url like CONCAT ('%',domain,'%')
LEFT JOIN clicks_count ON
links.link_id = clicks_count.link_id
LEFT JOIN likes ON
links.link_id = likes.link_id
WHERE (`url` LIKE '%".$domain."%') AND
MATCH(title,url,description,keywords,fulltxt) AGAINST('$query_star @50' IN BOOLEAN MODE)
AND `active_domain` = 1
GROUP BY url
ORDER BY (weight_t+weight_u+weight_d+weight_k) DESC
LIMIT ".(($page-1)*10)." , 10
");
这将帮助我只有python或在PHP中有任何解决方案