[ DB ] CONNECT:[ UseTime:0.036068s ] mysql:host=localhost;port=3306;dbname=test_92ya_com;charset=utf8
[ SQL ] SHOW COLUMNS FROM `ebx_config` [ RunTime:0.009263s ]
[ SQL ] SELECT * FROM `ebx_config` [ RunTime:0.000410s ]
[ SQL ] SHOW COLUMNS FROM `ebx_article_unique_tags` [ RunTime:0.013725s ]
[ SQL ] SELECT * FROM `ebx_article_unique_tags` WHERE `tag_id` = 99 LIMIT 1 [ RunTime:0.000352s ]
[ SQL ] SELECT * FROM `ebx_article_unique_tags` WHERE `tag_id` = 99 LIMIT 1 [ RunTime:0.001947s ]
[ SQL ] SELECT * FROM (
SELECT * FROM (
SELECT 'article' as table_id, b.article_id as 't__id', b.user_id as 't__eid', a.tag, b.cat_id, b.title, b.author,b.come_from, b.keywords, b.add_time,
b.introduction, b.description, b.click, b.publish_time, b.thumb, b.virtual_num, b.type, b.video_thumb, b.is_duotu, b.image_url, b.update_time,
(CASE WHEN `a`.`tag` = 'hello word' THEN 1000 ELSE 0 END) AS Index0 ,(CASE WHEN LOCATE("word",`b`.`title`)>0 THEN 50 ELSE 0 END) AS Index1 ,(CASE WHEN LOCATE("word",`b`.`description`)>0 THEN 30 ELSE 0 END) AS Index2
FROM ebx_article AS b LEFT JOIN ebx_article_tags AS a ON a.article_id =b.article_id
WHERE `b`.`is_open` = 1 AND (`a`.`tag` = 'hello word' OR LOCATE("word",`b`.`title`)>0 OR LOCATE("word",`b`.`description`)>0 ) group by b.article_id ) t_100
UNION
SELECT * FROM (
SELECT 'kepu' as table_id, b.kepu_id as 't__id', b.eid as 't__eid', a.tag, b.cat_id, b.title, b.author,b.come_from, b.keywords, b.add_time,
b.introduction, b.description, b.click, b.publish_time, b.thumb, b.virtual_num, b.kepu_type as type, b.video_thumb, '0' as is_duotu, '' as image_url, b.update_time,
(CASE WHEN `a`.`tag` = 'hello word' THEN 1000 ELSE 0 END) AS Index0 ,(CASE WHEN LOCATE("word",`b`.`title`)>0 THEN 50 ELSE 0 END) AS Index1 ,(CASE WHEN LOCATE("word",`b`.`description`)>0 THEN 30 ELSE 0 END) AS Index2
FROM ebx_kepu AS b LEFT JOIN ebx_kepu_tags AS a ON a.kepu_id =b.kepu_id
WHERE `b`.`is_open` = 1 AND (`a`.`tag` = 'hello word' OR LOCATE("word",`b`.`title`)>0 OR LOCATE("word",`b`.`description`)>0 ) group by b.kepu_id ) t_101
) t_200 ORDER BY ( Index0 + Index1 + Index2) DESC limit 0,10 [ RunTime:0.003530s ]
[ SQL ] SELECT sum(c) as ccc FROM (
SELECT count(*) as c
FROM ebx_article AS b LEFT JOIN ebx_article_tags AS a ON a.article_id =b.article_id
WHERE `b`.`is_open` = 1 AND (`a`.`tag` = 'hello word' OR LOCATE("word",`b`.`title`)>0 OR LOCATE("word",`b`.`description`)>0 )
UNION
SELECT count(*) as c
FROM ebx_kepu AS b LEFT JOIN ebx_kepu_tags AS a ON a.kepu_id =b.kepu_id
WHERE `b`.`is_open` = 1 AND (`a`.`tag` = 'hello word' OR LOCATE("word",`b`.`title`)>0 OR LOCATE("word",`b`.`description`)>0 )
) t_200 limit 1 [ RunTime:0.001306s ]