SELECT cache_value
FROM xf_permission_combination
WHERE permission_combination_id = ?
Params: 1
Run Time: 0.000227
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.001942
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.001390
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: 12
Run Time: 0.001047
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 | |