SELECT data_key, data_value
FROM xf_data_registry
WHERE data_key IN ('languages')
Run Time: 0.000350
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_data_registry | const | PRIMARY | PRIMARY | 27 | const | 1 | |
SELECT cache_value
FROM xf_permission_combination
WHERE permission_combination_id = ?
Params: 1
Run Time: 0.000131
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_permission_combination | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SELECT thread.*
,
user.gender, user.avatar_date, user.gravatar,
NULL AS thread_read_date,
0 AS thread_is_watched,
'' AS draft_message, NULL AS draft_extra,
social_forum.title AS social_forum_title, social_forum.user_id AS social_forum_user_id, social_forum.style_id AS social_forum_style_id
FROM xf_thread AS thread
LEFT JOIN xf_user AS user ON
(user.user_id = thread.user_id)
LEFT JOIN xf_social_forum AS social_forum ON
(social_forum.social_forum_id = thread.social_forum_id)
WHERE thread.thread_id = ?
Params: 12117
Run Time: 0.000418
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 | |
SIMPLE | social_forum | const | PRIMARY | PRIMARY | 4 | const | 0 | unique row not found |
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: 133
Run Time: 0.000380
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | forum | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SIMPLE | node | 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,
social_forum.logo_date,
social_forum.logo_width,
social_forum.logo_height,
social_forum.logo_crop_x,
social_forum.logo_crop_y,
social_forum.title AS social_forum_title,
social_forum_combination.cache_value AS secondary_social_forums,
xf_hoffi_dm_rolls.roll_id as roll_id
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))
LEFT JOIN xf_social_forum AS social_forum ON
(social_forum.social_forum_id = user_profile.primary_social_forum_id)
LEFT JOIN xf_social_forum_combination AS social_forum_combination ON
(social_forum_combination.social_forum_combination_id = user_profile.social_forum_combination_id)
LEFT JOIN xf_hoffi_dm_rolls ON (post.post_id = xf_hoffi_dm_rolls.post_id)
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: 12117
Run Time: 0.001176
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | post | range | thread_id_post_date,thread_id_position | thread_id_position | 8 | | 7 | Using index condition; Using where; Using filesort |
SIMPLE | user | eq_ref | PRIMARY | PRIMARY | 4 | bs_xf.post.user_id | 1 | |
SIMPLE | user_profile | eq_ref | PRIMARY | PRIMARY | 4 | bs_xf.post.user_id | 1 | |
SIMPLE | user_privacy | eq_ref | PRIMARY | PRIMARY | 4 | bs_xf.post.user_id | 1 | |
SIMPLE | session_activity | eq_ref | PRIMARY | PRIMARY | 22 | bs_xf.post.user_id,func | 1 | Using where |
SIMPLE | social_forum | eq_ref | PRIMARY | PRIMARY | 4 | bs_xf.user_profile.primary_social_forum_id | 1 | Using where |
SIMPLE | social_forum_combination | eq_ref | PRIMARY | PRIMARY | 4 | bs_xf.user_profile.social_forum_combination_id | 1 | Using where |
SIMPLE | xf_hoffi_dm_rolls | ref | post_id | post_id | 4 | bs_xf.post.post_id | 1 | Using where; Using index |
INSERT DELAYED INTO xf_thread_view
(thread_id)
VALUES
(?)
Params: 12117
Run Time: 0.000138
SELECT *
FROM xf_node
ORDER BY lft ASC
Run Time: 0.001290
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_node | ALL | | | | | 261 | Using filesort |
SELECT content_id, cache_value
FROM xf_permission_cache_content
WHERE permission_combination_id = ?
AND content_type = 'node'
Params: 1
Run Time: 0.000755
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_permission_cache_content | ref | PRIMARY | PRIMARY | 31 | const,const | 568 | Using where |
SELECT xf_thread.thread_id,
xf_thread.node_id,
xf_thread.title,
xf_thread.reply_count,
xf_thread.view_count,
xf_thread.username,
xf_thread.post_date,
xf_thread.last_post_date,
xf_thread.last_post_user_id,
xf_thread.last_post_username,
xf_node.title AS nodeTitle,
xf_user.user_id,
xf_user.gender,
xf_user.avatar_date
FROM xf_thread
INNER JOIN xf_node ON xf_node.node_id = xf_thread.node_id
INNER JOIN xf_user ON xf_user.user_id = xf_thread.user_id
WHERE (xf_thread.thread_id = 8568 OR xf_thread.thread_id = 24197 OR xf_thread.thread_id = 58759 OR xf_thread.thread_id = 1465 OR xf_thread.thread_id = 187)
AND xf_thread.discussion_state = 'visible'
ORDER BY xf_thread.thread_id DESC
LIMIT 5
Run Time: 0.000549
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_thread | range | PRIMARY,node_id_last_post_date,node_id_sticky_state_last_post,user_id | PRIMARY | 4 | | 5 | Using where |
SIMPLE | xf_node | eq_ref | PRIMARY | PRIMARY | 4 | bs_xf.xf_thread.node_id | 1 | |
SIMPLE | xf_user | eq_ref | PRIMARY | PRIMARY | 4 | bs_xf.xf_thread.user_id | 1 | |
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=12117, 1576181639,
Run Time: 0.000170
SELECT moderator_content.*, user.username
FROM xf_moderator_content AS moderator_content
INNER JOIN xf_user AS user ON (user.user_id = moderator_content.user_id)
WHERE (moderator_content.content_type = 'node') AND (moderator_content.content_id = 133)
ORDER BY user.username
Run Time: 0.001004
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | moderator_content | ref | content_user_id,user_id | content_user_id | 31 | const,const | 1 | Using index condition; Using temporary; Using filesort |
SIMPLE | user | eq_ref | PRIMARY | PRIMARY | 4 | bs_xf.moderator_content.user_id | 1 | |
SELECT options.*, node.*,
permission.cache_value AS node_permission_cache
FROM nat_options AS options
INNER JOIN xf_node AS node
ON (node.node_id = options.node_id)
LEFT JOIN xf_permission_cache_content AS permission
ON (permission.permission_combination_id = ?
AND permission.content_type = 'node'
AND permission.content_id = options.node_id)
WHERE nat_display_tab = 1
ORDER BY options.nat_display_order
ASC
Params: 1
Run Time: 0.000745
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | options | ALL | node_id | | | | 176 | Using where; Using filesort |
SIMPLE | node | eq_ref | PRIMARY | PRIMARY | 4 | bs_xf.options.node_id | 1 | |
SIMPLE | permission | eq_ref | PRIMARY | PRIMARY | 35 | const,const,bs_xf.options.node_id | 1 | Using where |
SELECT node.*, COALESCE(options.nat_newwindow, 0) AS nat_newwindow,
permission.cache_value AS node_permission_cache
FROM xf_node AS node
LEFT JOIN xf_permission_cache_content AS permission
ON (permission.permission_combination_id = ?
AND permission.content_type = 'node'
AND permission.content_id = node.node_id)
LEFT JOIN nat_options AS options ON (options.node_id = node.node_id)
WHERE node.node_id IN (288, 289, 290, 291)
ORDER BY node.lft
ASC
Params: 1
Run Time: 0.000476
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | node | range | PRIMARY | PRIMARY | 4 | | 4 | Using where; Using filesort |
SIMPLE | permission | eq_ref | PRIMARY | PRIMARY | 35 | const,const,bs_xf.node.node_id | 1 | Using where |
SIMPLE | options | eq_ref | node_id | node_id | 4 | bs_xf.node.node_id | 1 | |
SELECT title, phrase_text
FROM xf_phrase_compiled
WHERE language_id = ?
AND title IN ('events')
Params: 4
Run Time: 0.000262
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_phrase_compiled | const | PRIMARY | PRIMARY | 106 | const,const | 1 | |