进出口运行波纹管查询,以便从3个MySQL表获取和它的作品不错,但它增加了内存使用情况和某个需要10秒钟来启动加载页面mysql内部连接语句和内存过度使用!
INNER JOIN table_tags AS ntg ON (ns.tags = '' OR CONCAT(' ',COALESCE(ns.tags,' '),' ') LIKE CONCAT('% ',ntg.tid,' %'))
INNER JOIN table_topics AS nto ON (ns.associated = '' OR CONCAT(' ',COALESCE(ns.associated,'-'),' ') LIKE CONCAT('%',nto.topicid,'%'))
问题在内部加入statemnet,如果我除去
ns.tags = '' OR
和
ns.associated =“” OR
内存过度使用问题将是固定的,但空标签字段
着演出的故事是没有办法写波纹管语句包括所有其他任何方式甚至那些没有标签的故事!?
INNER JOIN table_tags AS ntg ON (ns.tags = '' OR CONCAT(' ',COALESCE(ns.tags,' '),' ') LIKE CONCAT('% ',ntg.tid,' %'))
我的标签ID存储在table_ns像(14 17 2)空间seprated