SELECT data_key, data_value
FROM xf_data_registry
WHERE data_key IN ('options', 'languages', 'contentTypes', 'codeEventListeners', 'deferredRun', 'simpleCache', 'addOns', 'defaultStyleProperties', 'routeFiltersIn', 'routeFiltersOut', 'routesPublic', 'nodeTypes', 'bannedIps', 'discouragedIps', 'styles', 'displayStyles', 'userBanners', 'smilies', 'bbCode', 'threadPrefixes', 'userTitleLadder', 'reportCounts', 'moderationCounts', 'userModerationCounts', 'notices', 'userFieldsInfo')
Run Time: 0.000917
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_data_registry | ALL | PRIMARY | | | | 34 | Using where |
SELECT cache_value
FROM xf_permission_combination
WHERE permission_combination_id = ?
Params: 1
Run Time: 0.000222
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_permission_combination | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SELECT user_point.*
FROM xf_user_point AS user_point
WHERE 1=1
Run Time: 0.006436
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | user_point | ALL | | | | | 10915 | |
SELECT thread.*
,
user.gender, user.avatar_date, user.gravatar,
NULL AS thread_read_date,
0 AS thread_reply_banned,
0 AS thread_is_watched,
'' AS draft_message, NULL AS draft_extra
FROM xf_thread AS thread
LEFT JOIN xf_user AS user ON
(user.user_id = thread.user_id)
WHERE thread.thread_id = ?
Params: 3039
Run Time: 0.003283
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | thread | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SIMPLE | user | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SELECT node.*, forum.*
,
permission.cache_value AS node_permission_cache,
NULL AS forum_read_date
FROM xf_forum AS forum
INNER JOIN xf_node AS node ON (node.node_id = forum.node_id)
LEFT JOIN xf_permission_cache_content AS permission
ON (permission.permission_combination_id = 1
AND permission.content_type = 'node'
AND permission.content_id = forum.node_id)
WHERE node.node_id = ?
Params: 26
Run Time: 0.005061
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | node | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SIMPLE | forum | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SIMPLE | permission | const | PRIMARY | PRIMARY | 35 | const,const,const | 1 | |
SELECT post.*
,
user.*, IF(user.username IS NULL, post.username, user.username) AS username,
user_profile.*,
user_privacy.*,
session_activity.view_date AS last_view_date,
0 AS like_date
FROM xf_post AS post
LEFT JOIN xf_user AS user ON
(user.user_id = post.user_id)
LEFT JOIN xf_user_profile AS user_profile ON
(user_profile.user_id = post.user_id)
LEFT JOIN xf_user_privacy AS user_privacy ON
(user_privacy.user_id = post.user_id)
LEFT JOIN xf_session_activity AS session_activity ON
(post.user_id > 0 AND session_activity.user_id = post.user_id AND session_activity.unique_key = CAST(post.user_id AS BINARY))
WHERE post.thread_id = ?
AND (post.position >= 0 AND post.position < 20)
AND (post.message_state IN ('visible'))
ORDER BY post.position ASC, post.post_date ASC
Params: 3039
Run Time: 0.012932
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | post | ref | thread_id_post_date,thread_id_position | thread_id_post_date | 4 | const | 1 | Using where; Using filesort |
SIMPLE | user | eq_ref | PRIMARY | PRIMARY | 4 | dien7104_tailieu.post.user_id | 1 | |
SIMPLE | user_profile | eq_ref | PRIMARY | PRIMARY | 4 | dien7104_tailieu.post.user_id | 1 | |
SIMPLE | user_privacy | eq_ref | PRIMARY | PRIMARY | 4 | dien7104_tailieu.post.user_id | 1 | |
SIMPLE | session_activity | eq_ref | PRIMARY | PRIMARY | 22 | dien7104_tailieu.post.user_id,func | 1 | Using where |
INSERT DELAYED INTO xf_thread_view
(thread_id)
VALUES
(?)
Params: 3039
Run Time: 0.000337
SELECT *
FROM xf_brivium_extra_thread_item
WHERE thread_id = ? AND user_id = ?
Params: 3039, 0
Run Time: 0.506263
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_brivium_extra_thread_item | ALL | | | | | 25048 | Using where |
SELECT thread.*
FROM xf_thread AS thread
WHERE ((thread.discussion_type <> 'redirect') AND (thread.discussion_state = 'visible') AND (thread.post_date < 1534404485)) AND (thread.thread_id <> 3039)
ORDER BY thread.post_date DESC
LIMIT 5
Run Time: 0.018556
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | thread | range | PRIMARY,post_date | post_date | 4 | | 2879 | Using where |
SELECT thread.*
FROM xf_thread AS thread
WHERE ((thread.discussion_type <> 'redirect') AND (thread.discussion_state = 'visible') AND (thread.post_date > 1534404485)) AND (thread.thread_id <> 3039)
ORDER BY thread.post_date ASC
LIMIT 5
Run Time: 0.007457
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | thread | range | PRIMARY,post_date | post_date | 4 | | 10935 | Using index condition; Using where |
SELECT thread.*
FROM xf_thread AS thread
WHERE ((thread.discussion_type <> 'redirect') AND (thread.discussion_state = 'visible')) AND (thread.thread_id <> 3039)
ORDER BY thread.post_date DESC
LIMIT 5
Run Time: 0.001413
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | thread | index | PRIMARY | post_date | 4 | | 5 | Using where |
SELECT cache_value
FROM xf_permission_cache_content
WHERE permission_combination_id = ?
AND content_type = ?
AND content_id = ?
Params: 1, node, 11
Run Time: 0.000241
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_permission_cache_content | const | PRIMARY | PRIMARY | 35 | const,const,const | 1 | |
UPDATE `xf_brivium_extra_thread_item` SET `date_update` = ?, `extra_cache` = ? WHERE (thread_id = 3039 AND user_id = 0)
Params: 1714590584, a:3:{s:12:"olderThreads";a:5:{i:3038;a:22:{s:9:"thread_id";i:3038;s:7:"node_id";i:26;s:5:"title";s:47:"Luận Đề Về Nguyễn Khuyến | Tao Đàn";s:11:"reply_count";i:0;s:10:"view_count";i:995;s:7:"user_id";i:1;s:8:"username";s:5:"admin";s:9:"post_date";i:1534404421;s:6:"sticky";i:0;s:16:"discussion_state";s:7:"visible";s:15:"discussion_open";i:1;s:15:"discussion_type";s:0:"";s:13:"first_post_id";i:3337;s:16:"first_post_likes";i:0;s:14:"last_post_date";i:1534404421;s:12:"last_post_id";i:3337;s:17:"last_post_user_id";i:1;s:18:"last_post_username";s:5:"admin";s:9:"prefix_id";i:2;s:4:"tags";s:148:"a:2:{i:3492;a:2:{s:3:"tag";s:13:"nguyen khuyen";s:7:"tag_url";s:13:"nguyen-khuyen";}i:81;a:2:{s:3:"tag";s:7:"tao dan";s:7:"tag_url";s:7:"tao-dan";}}";s:13:"titleCensored";b:1;s:10:"hasPreview";b:1;}i:3037;a:22:{s:9:"thread_id";i:3037;s:7:"node_id";i:26;s:5:"title";s:28:"Kim Thạch Kỳ Duyên 1933";s:11:"reply_count";i:0;s:10:"view_count";i:671;s:7:"user_id";i:1;s:8:"username";s:5:"admin";s:9:"post_date";i:1534404361;s:6:"sticky";i:0;s:16:"discussion_state";s:7:"visible";s:15:"discussion_open";i:1;s:15:"discussion_type";s:0:"";s:13:"first_post_id";i:3336;s:16:"first_post_likes";i:0;s:14:"last_post_date";i:1534404361;s:12:"last_post_id";i:3336;s:17:"last_post_user_id";i:1;s:18:"last_post_username";s:5:"admin";s:9:"prefix_id";i:2;s:4:"tags";s:214:"a:3:{i:610;a:2:{s:3:"tag";s:4:"1933";s:7:"tag_url";s:4:"1933";}i:3490;a:2:{s:3:"tag";s:18:"kim thach ky duyen";s:7:"tag_url";s:18:"kim-thach-ky-duyen";}i:3491;a:2:{s:3:"tag";s:5:"tuong";s:7:"tag_url";s:5:"tuong";}}";s:13:"titleCensored";b:1;s:10:"hasPreview";b:1;}i:3036;a:22:{s:9:"thread_id";i:3036;s:7:"node_id";i:26;s:5:"title";s:20:"Việt Sử Lớp Ba";s:11:"reply_count";i:0;s:10:"view_count";i:1024;s:7:"user_id";i:1;s:8:"username";s:5:"admin";s:9:"post_date";i:1534404315;s:6:"sticky";i:0;s:16:"discussion_state";s:7:"visible";s:15:"discussion_open";i:1;s:15:"discussion_type";s:0:"";s:13:"first_post_id";i:3335;s:16:"first_post_likes";i:0;s:14:"last_post_date";i:1534404315;s:12:"last_post_id";i:3335;s:17:"last_post_user_id";i:1;s:18:"last_post_username";s:5:"admin";s:9:"prefix_id";i:2;s:4:"tags";s:85:"a:1:{i:3489;a:2:{s:3:"tag";s:13:"viet su lop 3";s:7:"tag_url";s:13:"viet-su-lop-3";}}";s:13:"titleCensored";b:1;s:10:"hasPreview";b:1;}i:3035;a:22:{s:9:"thread_id";i:3035;s:7:"node_id";i:26;s:5:"title";s:41:"Tuấn Chàng Trai Nước Việt Tập 1";s:11:"reply_count";i:0;s:10:"view_count";i:903;s:7:"user_id";i:1;s:8:"username";s:5:"admin";s:9:"post_date";i:1534404110;s:6:"sticky";i:0;s:16:"discussion_state";s:7:"visible";s:15:"discussion_open";i:1;s:15:"discussion_type";s:0:"";s:13:"first_post_id";i:3334;s:16:"first_post_likes";i:0;s:14:"last_post_date";i:1534404110;s:12:"last_post_id";i:3334;s:17:"last_post_user_id";i:1;s:18:"last_post_username";s:5:"admin";s:9:"prefix_id";i:2;s:4:"tags";s:178:"a:2:{i:3611;a:2:{s:3:"tag";s:9:"nguyen vy";s:7:"tag_url";s:9:"nguyen-vy";}i:3481;a:2:{s:3:"tag";s:25:"tuan chang trai nuoc viet";s:7:"tag_url";s:25:"tuan-chang-trai-nuoc-viet";}}";s:13:"titleCensored";b:1;s:10:"hasPreview";b:1;}i:3034;a:22:{s:9:"thread_id";i:3034;s:7:"node_id";i:26;s:5:"title";s:67:"Tổ chức công việc theo khoa học 1950 - Nguyễn Hiến Lê";s:11:"reply_count";i:0;s:10:"view_count";i:861;s:7:"user_id";i:1;s:8:"username";s:5:"admin";s:9:"post_date";i:1534403985;s:6:"sticky";i:0;s:16:"discussion_state";s:7:"visible";s:15:"discussion_open";i:1;s:15:"discussion_type";s:0:"";s:13:"first_post_id";i:3333;s:16:"first_post_likes";i:0;s:14:"last_post_date";i:1534403985;s:12:"last_post_id";i:3333;s:17:"last_post_user_id";i:1;s:18:"last_post_username";s:5:"admin";s:9:"prefix_id";i:2;s:4:"tags";s:145:"a:2:{i:1417;a:2:{s:3:"tag";s:4:"1950";s:7:"tag_url";s:4:"1950";}i:519;a:2:{s:3:"tag";s:14:"nguyen hien le";s:7:"tag_url";s:14:"nguyen-hien-le";}}";s:13:"titleCensored";b:1;s:10:"hasPreview";b:1;}}s:12:"newerThreads";a:5:{i:3040;a:22:{s:9:"thread_id";i:3040;s:7:"node_id";i:26;s:5:"title";s:37:"Giọt Máu Chung Tình tập 1, 2, 3";s:11:"reply_count";i:0;s:10:"view_count";i:927;s:7:"user_id";i:1;s:8:"username";s:5:"admin";s:9:"post_date";i:1534404788;s:6:"sticky";i:0;s:16:"discussion_state";s:7:"visible";s:15:"discussion_open";i:1;s:15:"discussion_type";s:0:"";s:13:"first_post_id";i:3339;s:16:"first_post_likes";i:0;s:14:"last_post_date";i:1534404788;s:12:"last_post_id";i:3339;s:17:"last_post_user_id";i:1;s:18:"last_post_username";s:5:"admin";s:9:"prefix_id";i:2;s:4:"tags";s:156:"a:2:{i:2406;a:2:{s:3:"tag";s:4:"1926";s:7:"tag_url";s:4:"1926";}i:3495;a:2:{s:3:"tag";s:19:"giot mau chung tinh";s:7:"tag_url";s:19:"giot-mau-chung-tinh";}}";s:13:"titleCensored";b:1;s:10:"hasPreview";b:1;}i:3041;a:22:{s:9:"thread_id";i:3041;s:7:"node_id";i:26;s:5:"title";s:61:"Tài mạng tương đố Tập 1 + 2 - Nguyễn Chánh Sắt";s:11:"reply_count";i:0;s:10:"view_count";i:694;s:7:"user_id";i:1;s:8:"username";s:5:"admin";s:9:"post_date";i:1534405155;s:6:"sticky";i:0;s:16:"discussion_state";s:7:"visible";s:15:"discussion_open";i:1;s:15:"discussion_type";s:0:"";s:13:"first_post_id";i:3340;s:16:"first_post_likes";i:0;s:14:"last_post_date";i:1534405155;s:12:"last_post_id";i:3340;s:17:"last_post_user_id";i:1;s:18:"last_post_username";s:5:"admin";s:9:"prefix_id";i:2;s:4:"tags";s:159:"a:2:{i:459;a:2:{s:3:"tag";s:9:"huyen hoc";s:7:"tag_url";s:9:"huyen-hoc";}i:3496;a:2:{s:3:"tag";s:16:"nguyen chanh sat";s:7:"tag_url";s:16:"nguyen-chanh-sat";}}";s:13:"titleCensored";b:1;s:10:"hasPreview";b:1;}i:3042;a:22:{s:9:"thread_id";i:3042;s:7:"node_id";i:26;s:5:"title";s:52:"Hoàng đế trẻ Bảo Đại ở Bắc Trung Kỳ";s:11:"reply_count";i:0;s:10:"view_count";i:739;s:7:"user_id";i:1;s:8:"username";s:5:"admin";s:9:"post_date";i:1534507782;s:6:"sticky";i:0;s:16:"discussion_state";s:7:"visible";s:15:"discussion_open";i:1;s:15:"discussion_type";s:0:"";s:13:"first_post_id";i:3341;s:16:"first_post_likes";i:0;s:14:"last_post_date";i:1534507782;s:12:"last_post_id";i:3341;s:17:"last_post_user_id";i:1;s:18:"last_post_username";s:5:"admin";s:9:"prefix_id";i:2;s:4:"tags";s:138:"a:2:{i:3497;a:2:{s:3:"tag";s:7:"bao dai";s:7:"tag_url";s:7:"bao-dai";}i:3498;a:2:{s:3:"tag";s:8:"hoang de";s:7:"tag_url";s:8:"hoang-de";}}";s:13:"titleCensored";b:1;s:10:"hasPreview";b:1;}i:3043;a:22:{s:9:"thread_id";i:3043;s:7:"node_id";i:26;s:5:"title";s:107:"Lịch sử ngoại giao ở Bắc Kỳ và cuộc xung đột của chúng ta với Trung Hoa 1882-1885 ..";s:11:"reply_count";i:0;s:10:"view_count";i:696;s:7:"user_id";i:1;s:8:"username";s:5:"admin";s:9:"post_date";i:1534507849;s:6:"sticky";i:0;s:16:"discussion_state";s:7:"visible";s:15:"discussion_open";i:1;s:15:"discussion_type";s:0:"";s:13:"first_post_id";i:3342;s:16:"first_post_likes";i:0;s:14:"last_post_date";i:1534507849;s:12:"last_post_id";i:3342;s:17:"last_post_user_id";i:1;s:18:"last_post_username";s:5:"admin";s:9:"prefix_id";i:2;s:4:"tags";s:186:"a:3:{i:3499;a:2:{s:3:"tag";s:4:"1882";s:7:"tag_url";s:4:"1882";}i:3500;a:2:{s:3:"tag";s:4:"1885";s:7:"tag_url";s:4:"1885";}i:524;a:2:{s:3:"tag";s:6:"tonkin";s:7:"tag_url";s:6:"tonkin";}}";s:13:"titleCensored";b:1;s:10:"hasPreview";b:1;}i:3044;a:22:{s:9:"thread_id";i:3044;s:7:"node_id";i:26;s:5:"title";s:49:"Phụ Nữ Tân Văn 22 Tháng Mười Một 1934";s:11:"reply_count";i:0;s:10:"view_count";i:812;s:7:"user_id";i:1;s:8:"username";s:5:"admin";s:9:"post_date";i:1534507904;s:6:"sticky";i:0;s:16:"discussion_state";s:7:"visible";s:15:"discussion_open";i:1;s:15:"discussion_type";s:0:"";s:13:"first_post_id";i:3343;s:16:"first_post_likes";i:0;s:14:"last_post_date";i:1534507904;s:12:"last_post_id";i:3343;s:17:"last_post_user_id";i:1;s:18:"last_post_username";s:5:"admin";s:9:"prefix_id";i:2;s:4:"tags";s:145:"a:2:{i:782;a:2:{s:3:"tag";s:4:"1934";s:7:"tag_url";s:4:"1934";}i:3501;a:2:{s:3:"tag";s:14:"phu nu tan van";s:7:"tag_url";s:14:"phu-nu-tan-van";}}";s:13:"titleCensored";b:1;s:10:"hasPreview";b:1;}}s:13:"latestThreads";a:5:{i:25520;a:22:{s:9:"thread_id";i:25520;s:7:"node_id";i:11;s:5:"title";s:87:"Hiệu Ứng Người Bảo Trợ: Dạy Chính Mình Bằng Cách Dạy Người Khác";s:11:"reply_count";i:0;s:10:"view_count";i:22;s:7:"user_id";i:3552;s:8:"username";s:7:"mod_van";s:9:"post_date";i:1714517221;s:6:"sticky";i:0;s:16:"discussion_state";s:7:"visible";s:15:"discussion_open";i:1;s:15:"discussion_type";s:0:"";s:13:"first_post_id";i:30509;s:16:"first_post_likes";i:0;s:14:"last_post_date";i:1714517221;s:12:"last_post_id";i:30509;s:17:"last_post_user_id";i:3552;s:18:"last_post_username";s:7:"mod_van";s:9:"prefix_id";i:16;s:4:"tags";s:6:"a:0:{}";s:13:"titleCensored";b:1;s:10:"hasPreview";b:1;}i:25519;a:22:{s:9:"thread_id";i:25519;s:7:"node_id";i:11;s:5:"title";s:85:"Nghệ Thuật 'Fake It Till You Make It' Của Huyền Thoại Cờ Vua Thế Giới";s:11:"reply_count";i:0;s:10:"view_count";i:22;s:7:"user_id";i:3552;s:8:"username";s:7:"mod_van";s:9:"post_date";i:1714517172;s:6:"sticky";i:0;s:16:"discussion_state";s:7:"visible";s:15:"discussion_open";i:1;s:15:"discussion_type";s:0:"";s:13:"first_post_id";i:30508;s:16:"first_post_likes";i:0;s:14:"last_post_date";i:1714517172;s:12:"last_post_id";i:30508;s:17:"last_post_user_id";i:3552;s:18:"last_post_username";s:7:"mod_van";s:9:"prefix_id";i:16;s:4:"tags";s:6:"a:0:{}";s:13:"titleCensored";b:1;s:10:"hasPreview";b:1;}i:25518;a:22:{s:9:"thread_id";i:25518;s:7:"node_id";i:11;s:5:"title";s:86:"35 BÍ QUYẾT ĐỌC SÁCH MÌNH HỌC ĐƯỢC SAU KHI ĐỌC HƠN 350 CUỐN SÁCH.";s:11:"reply_count";i:0;s:10:"view_count";i:17;s:7:"user_id";i:3552;s:8:"username";s:7:"mod_van";s:9:"post_date";i:1714517111;s:6:"sticky";i:0;s:16:"discussion_state";s:7:"visible";s:15:"discussion_open";i:1;s:15:"discussion_type";s:0:"";s:13:"first_post_id";i:30507;s:16:"first_post_likes";i:0;s:14:"last_post_date";i:1714517111;s:12:"last_post_id";i:30507;s:17:"last_post_user_id";i:3552;s:18:"last_post_username";s:7:"mod_van";s:9:"prefix_id";i:16;s:4:"tags";s:6:"a:0:{}";s:13:"titleCensored";b:1;s:10:"hasPreview";b:1;}i:25517;a:22:{s:9:"thread_id";i:25517;s:7:"node_id";i:11;s:5:"title";s:92:"Hiệu Ứng Thỏa Mãn Vượt Ngưỡng (Phần 1): Tiền Có Mua Được Hạnh Phúc?";s:11:"reply_count";i:0;s:10:"view_count";i:20;s:7:"user_id";i:3552;s:8:"username";s:7:"mod_van";s:9:"post_date";i:1714517080;s:6:"sticky";i:0;s:16:"discussion_state";s:7:"visible";s:15:"discussion_open";i:1;s:15:"discussion_type";s:0:"";s:13:"first_post_id";i:30506;s:16:"first_post_likes";i:0;s:14:"last_post_date";i:1714517080;s:12:"last_post_id";i:30506;s:17:"last_post_user_id";i:3552;s:18:"last_post_username";s:7:"mod_van";s:9:"prefix_id";i:16;s:4:"tags";s:6:"a:0:{}";s:13:"titleCensored";b:1;s:10:"hasPreview";b:1;}i:25516;a:22:{s:9:"thread_id";i:25516;s:7:"node_id";i:11;s:5:"title";s:56:"VÌ SAO CHÚNG TA KHÔNG LÀM NHỮNG GÌ ĐÃ ĐỀ RA?";s:11:"reply_count";i:0;s:10:"view_count";i:22;s:7:"user_id";i:3552;s:8:"username";s:7:"mod_van";s:9:"post_date";i:1714517042;s:6:"sticky";i:0;s:16:"discussion_state";s:7:"visible";s:15:"discussion_open";i:1;s:15:"discussion_type";s:0:"";s:13:"first_post_id";i:30505;s:16:"first_post_likes";i:0;s:14:"last_post_date";i:1714517042;s:12:"last_post_id";i:30505;s:17:"last_post_user_id";i:3552;s:18:"last_post_username";s:7:"mod_van";s:9:"prefix_id";i:16;s:4:"tags";s:6:"a:0:{}";s:13:"titleCensored";b:1;s:10:"hasPreview";b:1;}}}
Run Time: 0.977562
SELECT thread.*
,
MATCH(search_index.title) AGAINST ('Quê Mẹ' IN BOOLEAN MODE) AS similar_score
FROM xf_search_index AS search_index
LEFT JOIN xf_thread AS thread ON (thread.thread_id=search_index.content_id)
WHERE ((thread.discussion_type <> 'redirect') AND (thread.discussion_state = 'visible')) AND (thread.thread_id <> 3039)
AND MATCH(search_index.title) AGAINST ('Quê Mẹ' IN BOOLEAN MODE)
AND search_index.content_type='thread'
HAVING similar_score >= 1
ORDER BY similar_score
LIMIT 5
Run Time: 0.130785
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | search_index | ref | PRIMARY | PRIMARY | 77 | const | 497 | Using index condition; Using where; Using temporary; Using filesort |
SIMPLE | thread | eq_ref | PRIMARY | PRIMARY | 4 | dien7104_tailieu.search_index.content_id | 1 | Using where |
SELECT thread.thread_id
FROM xf_thread AS thread
WHERE ((thread.discussion_type <> 'redirect') AND (thread.discussion_state = 'visible')) AND (thread.thread_id <> 3039)
ORDER BY RAND()
LIMIT 5
Run Time: 0.986495
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | thread | ALL | PRIMARY | | | | 21870 | Using where; Using temporary; Using filesort |
SELECT thread.*
,
user.*, IF(user.username IS NULL, thread.username, user.username) AS username
FROM xf_thread AS thread
LEFT JOIN xf_user AS user ON
(user.user_id = thread.user_id)
WHERE ((thread.discussion_type <> 'redirect') AND (thread.discussion_state = 'visible')) AND (thread.thread_id IN (25277, 13296, 6132, 20466, 22684))
ORDER BY thread.post_date DESC
LIMIT 5
Run Time: 0.005017
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | thread | range | PRIMARY | PRIMARY | 4 | | 5 | Using where; Using filesort |
SIMPLE | user | eq_ref | PRIMARY | PRIMARY | 4 | dien7104_tailieu.thread.user_id | 1 | |
SELECT cache_value
FROM xf_permission_cache_content
WHERE permission_combination_id = ?
AND content_type = ?
AND content_id = ?
Params: 1, node, 19
Run Time: 0.003463
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_permission_cache_content | const | PRIMARY | PRIMARY | 35 | const,const,const | 1 | |
SELECT cache_value
FROM xf_permission_cache_content
WHERE permission_combination_id = ?
AND content_type = ?
AND content_id = ?
Params: 1, node, 91
Run Time: 0.001482
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_permission_cache_content | const | PRIMARY | PRIMARY | 35 | const,const,const | 1 | |
SELECT cache_value
FROM xf_permission_cache_content
WHERE permission_combination_id = ?
AND content_type = ?
AND content_id = ?
Params: 1, node, 203
Run Time: 0.001553
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_permission_cache_content | const | PRIMARY | PRIMARY | 35 | const,const,const | 1 | |
SELECT cache_value
FROM xf_permission_cache_content
WHERE permission_combination_id = ?
AND content_type = ?
AND content_id = ?
Params: 1, node, 64
Run Time: 0.001312
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_permission_cache_content | const | PRIMARY | PRIMARY | 35 | const,const,const | 1 | |
SELECT cache_value
FROM xf_permission_cache_content
WHERE permission_combination_id = ?
AND content_type = ?
AND content_id = ?
Params: 1, node, 103
Run Time: 0.000970
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_permission_cache_content | const | PRIMARY | PRIMARY | 35 | const,const,const | 1 | |
SELECT post_links.*
FROM xf_post_links AS post_links
WHERE (post_links.thread_id = 3039)
Run Time: 0.205358
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | post_links | ALL | | | | | 25589 | Using where |
INSERT INTO `xf_session` (`session_id`, `session_data`, `expiry_date`) VALUES (?, ?, ?)
Params: 4d8d3659c94012556343c80c8868e7f3, , 1714594184
Run Time: 0.000307
INSERT INTO xf_session_activity
(user_id, unique_key, ip, controller_name, controller_action, view_state, params, view_date, robot_key)
VALUES
(?, ?, ?, ?, ?, ?, ?, ?, ?)
ON DUPLICATE KEY UPDATE
ip = VALUES(ip),
controller_name = VALUES(controller_name),
controller_action = VALUES(controller_action),
view_state = VALUES(view_state),
params = VALUES(params),
view_date = VALUES(view_date),
robot_key = VALUES(robot_key)
Params: 0, , , XenForo_ControllerPublic_Thread, Index, valid, thread_id=3039, 1714590584,
Run Time: 0.000330
SELECT title, template_compiled
FROM xf_template_compiled
WHERE title IN ('page_nav', 'bb_code_tag_code', 'bb_code_tag_php', 'bb_code_tag_html', 'bb_code_tag_quote', 'bb_code_tag_attach', 'bb_code_tag_spoiler', 'BRETI_message_below', 'thread_view', 'PAGE_CONTAINER')
AND style_id = ?
AND language_id = ?
Params: 3, 2
Run Time: 0.005103
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_template_compiled | range | PRIMARY | PRIMARY | 60 | | 10 | Using where |
SELECT adv.*
FROM xf_advertisement AS adv
WHERE (adv.active = 1) AND (adv.positive = 1)
Run Time: 0.000502
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | adv | ALL | | | | | 5 | Using where |
SELECT title, template_compiled
FROM xf_template_compiled
WHERE title IN ('tailieu_advertisement_top')
AND style_id = ?
AND language_id = ?
Params: 3, 2
Run Time: 0.000353
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_template_compiled | const | PRIMARY | PRIMARY | 60 | const,const,const | 1 | |
SELECT adv.*
FROM xf_advertisement AS adv
WHERE (adv.active = 1) AND (adv.positive = 3)
Run Time: 0.000384
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | adv | ALL | | | | | 5 | Using where |
SELECT title, template_compiled
FROM xf_template_compiled
WHERE title IN ('tailieu_advertisement_bottom')
AND style_id = ?
AND language_id = ?
Params: 3, 2
Run Time: 0.000305
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_template_compiled | const | PRIMARY | PRIMARY | 60 | const,const,const | 1 | |