SELECT cache_value
FROM xf_permission_combination
WHERE permission_combination_id = ?
Params: 1
Run Time: 0.000203
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_permission_combination | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SELECT post.post_id, post.user_id, thread.title, thread.node_id, thread.prefix_id, thread.thread_id, post.message, post.post_date, post.username, post.message_state, user.* FROM `ns_post` as nspost
LEFT JOIN xf_post as post ON nspost.post_id = post.post_id
LEFT JOIN xf_thread as thread ON post.thread_id = thread.thread_id
LEFT JOIN xf_user as user ON post.user_id = user.user_id ORDER BY post.post_date DESC
Run Time: 0.000797
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | nspost | index | | PRIMARY | 4 | | 7 | Using index; Using temporary; Using filesort |
SIMPLE | post | eq_ref | PRIMARY | PRIMARY | 4 | user_nextstagerussia.nspost.post_id | 1 | Using where |
SIMPLE | thread | eq_ref | PRIMARY | PRIMARY | 4 | user_nextstagerussia.post.thread_id | 1 | Using where |
SIMPLE | user | eq_ref | PRIMARY | PRIMARY | 4 | user_nextstagerussia.post.user_id | 1 | Using where |
SELECT feature.*, post.*, thread.*, node.*, user.*, node.title AS nodetitle, feature.title AS title, post.post_date AS post_date, post.user_id AS user_id, post.username AS username
FROM ns_feature AS feature
LEFT JOIN xf_post AS post ON (post.post_id = feature.feature_id)
LEFT JOIN xf_thread AS thread ON (thread.thread_id = post.thread_id)
LEFT JOIN xf_node AS node ON (node.node_id = thread.node_id)
LEFT JOIN xf_user AS user ON (user.user_id = post.user_id)
WHERE post.message_state = 'visible' AND thread.discussion_state = 'visible'
ORDER BY post.post_date DESC LIMIT 0,?
Params: 15
Run Time: 0.001383
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | feature | ALL | PRIMARY | | | | 350 | Using temporary; Using filesort |
SIMPLE | post | eq_ref | PRIMARY,thread_id_post_date,thread_id_position | PRIMARY | 4 | user_nextstagerussia.feature.feature_id | 1 | Using where |
SIMPLE | thread | eq_ref | PRIMARY | PRIMARY | 4 | user_nextstagerussia.post.thread_id | 1 | Using where |
SIMPLE | node | eq_ref | PRIMARY | PRIMARY | 4 | user_nextstagerussia.thread.node_id | 1 | |
SIMPLE | user | eq_ref | PRIMARY | PRIMARY | 4 | user_nextstagerussia.post.user_id | 1 | |
SELECT node.*, forum.*
,
permission.cache_value AS node_permission_cache,
NULL AS forum_read_date,
0 AS forum_is_watched
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: 4
Run Time: 0.000446
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 COUNT(*)
FROM xf_thread AS thread
WHERE (thread.node_id = 4) AND (thread.sticky = 0) AND (thread.discussion_state IN ('visible'))
Run Time: 0.006457
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | thread | ref | node_id_last_post_date,node_id_sticky_state_last_post | node_id_sticky_state_last_post | 6 | const,const,const | 10767 | Using where; Using index |
SELECT thread.*
,
user.*, IF(user.username IS NULL, thread.username, user.username) AS username,
NULL AS thread_read_date,
0 AS thread_is_watched,
0 AS user_post_count,
IF(rate.count IS NULL, 0, rate.count) AS thread_rate_count, IF(rate.sum IS NULL, 0, rate.sum) AS thread_rate_sum, IF(rate.avg IS NULL, 0, rate.avg) AS thread_rate_avg
FROM xf_thread AS thread
LEFT JOIN xf_user AS user ON
(user.user_id = thread.user_id)
LEFT JOIN ns_threadrating_rate AS rate ON (rate.thread_id = thread.thread_id)
WHERE (thread.node_id = 4) AND (thread.sticky = 0) AND (thread.discussion_state IN ('visible'))
ORDER BY thread.last_post_date DESC
LIMIT 20
Run Time: 0.002192
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | thread | range | node_id_last_post_date,node_id_sticky_state_last_post | node_id_last_post_date | 4 | | 10767 | Using where |
SIMPLE | user | eq_ref | PRIMARY | PRIMARY | 4 | user_nextstagerussia.thread.user_id | 1 | |
SIMPLE | rate | eq_ref | PRIMARY | PRIMARY | 4 | user_nextstagerussia.thread.thread_id | 1 | |
SELECT thread.*
,
user.*, IF(user.username IS NULL, thread.username, user.username) AS username,
NULL AS thread_read_date,
0 AS thread_is_watched,
0 AS user_post_count,
IF(rate.count IS NULL, 0, rate.count) AS thread_rate_count, IF(rate.sum IS NULL, 0, rate.sum) AS thread_rate_sum, IF(rate.avg IS NULL, 0, rate.avg) AS thread_rate_avg
FROM xf_thread AS thread
LEFT JOIN xf_user AS user ON
(user.user_id = thread.user_id)
LEFT JOIN ns_threadrating_rate AS rate ON (rate.thread_id = thread.thread_id)
WHERE (thread.node_id = 4) AND (thread.sticky = 1) AND (thread.discussion_state IN ('visible'))
ORDER BY thread.last_post_date DESC
Run Time: 0.001405
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | thread | ref | node_id_last_post_date,node_id_sticky_state_last_post | node_id_sticky_state_last_post | 6 | const,const,const | 2 | Using where |
SIMPLE | user | eq_ref | PRIMARY | PRIMARY | 4 | user_nextstagerussia.thread.user_id | 1 | |
SIMPLE | rate | eq_ref | PRIMARY | PRIMARY | 4 | user_nextstagerussia.thread.thread_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_Forum, Forum, valid, node_id=4, 1715878845,
Run Time: 0.000296