[ DB ] CONNECT:[ UseTime:0.014960s ] mysql:host=localhost;port=3306;dbname=test_92ya_com;charset=utf8
[ SQL ] SHOW COLUMNS FROM `ebx_article_unique_tags` [ RunTime:0.001223s ]
[ SQL ] SELECT * FROM `ebx_article_unique_tags` WHERE `tag_id` = 91 LIMIT 1 [ RunTime:0.000309s ]
[ SQL ] SELECT * FROM `ebx_article_unique_tags` WHERE `tag_id` = 91 LIMIT 1 [ RunTime:0.001161s ]
[ 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.003942s ]
[ 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.001388s ]
[ SQL ] SHOW COLUMNS FROM `ebx_expert` [ RunTime:0.001522s ]
[ SQL ] SELECT * FROM `ebx_expert` WHERE `eid` = 12 LIMIT 1 [ RunTime:0.000494s ]
[ 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=8 [ RunTime:0.000311s ]
[ SQL ] SELECT * FROM `ebx_expert` WHERE `eid` = 12 LIMIT 1 [ RunTime:0.000417s ]
[ 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=10 [ RunTime:0.000271s ]
[ SQL ] SHOW COLUMNS FROM `ebx_users` [ RunTime:0.001155s ]