SELECT cache_value FROM xf_permission_combination WHERE permission_combination_id = ?
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|---|---|---|---|---|---|---|---|
SIMPLE | xf_permission_combination | const | PRIMARY | PRIMARY | 4 | const | 1 |
SELECT * FROM xf_node WHERE display_in_list = 1 ORDER BY lft ASC
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|---|---|---|---|---|---|---|---|
SIMPLE | xf_node | ALL | display_in_list | 28 | Using where; Using filesort |
SELECT content_id, cache_value FROM xf_permission_cache_content WHERE permission_combination_id = ? AND content_type = 'node'
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|---|---|---|---|---|---|---|---|
SIMPLE | xf_permission_cache_content | ref | PRIMARY | PRIMARY | 31 | const,const | 28 | Using where |
SELECT prefix.* FROM xf_thread_prefix AS prefix WHERE 1=1 ORDER BY prefix.materialized_order
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|---|---|---|---|---|---|---|---|
SIMPLE | prefix | ALL | 22 | Using filesort |
SELECT prefix.prefix_id, node.*, forum.*, cache.cache_value AS node_permission_cache FROM xf_thread_prefix AS prefix INNER JOIN xf_forum_prefix AS fp ON (fp.prefix_id = prefix.prefix_id) INNER JOIN xf_node AS node ON (fp.node_id = node.node_id) INNER JOIN xf_forum AS forum ON (node.node_id = forum.node_id) INNER JOIN xf_permission_cache_content AS cache ON (cache.content_type = 'node' AND cache.content_id = node.node_id AND cache.permission_combination_id = ?) ORDER BY prefix.materialized_order
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|---|---|---|---|---|---|---|---|
SIMPLE | forum | ALL | PRIMARY | 21 | Using temporary; Using filesort | |||
SIMPLE | fp | ref | PRIMARY,prefix_id | PRIMARY | 4 | user_nextstagerussia.forum.node_id | 1 | Using index |
SIMPLE | prefix | eq_ref | PRIMARY | PRIMARY | 4 | user_nextstagerussia.fp.prefix_id | 1 | |
SIMPLE | node | eq_ref | PRIMARY | PRIMARY | 4 | user_nextstagerussia.forum.node_id | 1 | |
SIMPLE | cache | eq_ref | PRIMARY | PRIMARY | 35 | const,const,user_nextstagerussia.forum.node_id | 1 | Using where |
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)