[ DB ] CONNECT:[ UseTime:0.000616s ] mysql:host=localhost;port=3306;dbname=test_92ya_com;charset=utf8
[ SQL ] SHOW COLUMNS FROM `ebx_article_unique_tags` [ RunTime:0.000853s ]
[ SQL ] SELECT * FROM `ebx_article_unique_tags` WHERE `tag_id` = 86 LIMIT 1 [ RunTime:0.001386s ]
[ SQL ] SELECT * FROM `ebx_article_unique_tags` WHERE `tag_id` = 86 LIMIT 1 [ RunTime:0.000295s ]
[ 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` = '十八' THEN 1000 ELSE 0 END) AS Index0 ,(CASE WHEN LOCATE("十八",`b`.`title`)>0 THEN 50 ELSE 0 END) AS Index1 ,(CASE WHEN LOCATE("十八",`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` = '十八' OR LOCATE("十八",`b`.`title`)>0 OR LOCATE("十八",`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` = '十八' THEN 1000 ELSE 0 END) AS Index0 ,(CASE WHEN LOCATE("十八",`b`.`title`)>0 THEN 50 ELSE 0 END) AS Index1 ,(CASE WHEN LOCATE("十八",`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` = '十八' OR LOCATE("十八",`b`.`title`)>0 OR LOCATE("十八",`b`.`description`)>0 ) group by b.kepu_id ) t_101
) t_200 ORDER BY ( Index0 + Index1 + Index2) DESC limit 0,10 [ RunTime:0.003362s ]
[ 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` = '十八' OR LOCATE("十八",`b`.`title`)>0 OR LOCATE("十八",`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` = '十八' OR LOCATE("十八",`b`.`title`)>0 OR LOCATE("十八",`b`.`description`)>0 )
) t_200 limit 1 [ RunTime:0.001238s ]
[ SQL ] SHOW COLUMNS FROM `ebx_expert` [ RunTime:0.001243s ]
[ SQL ] SELECT * FROM `ebx_expert` WHERE `eid` = 12 LIMIT 1 [ RunTime:0.000387s ]
[ SQL ] select a.*,b.tag_id,b.letter from ebx_kepu_tags as a left join ebx_article_unique_tags as b on a.tag=b.tag where a.kepu_id=47 [ RunTime:0.000288s ]
[ SQL ] select * from ebx_kepu_tags as a where a.kepu_id = '47' [ RunTime:0.000194s ]
[ SQL ] SELECT * FROM `ebx_article_unique_tags` WHERE `tag` = '十八' LIMIT 1 [ RunTime:0.000221s ]
[ SQL ] SELECT * FROM `ebx_article_unique_tags` WHERE `tag` = '饮食八' LIMIT 1 [ RunTime:0.000222s ]