SELECT thread.*
,
user.*, IF(user.username IS NULL, thread.username, user.username) AS username,
node.title AS node_title, node.node_name,
post.message, post.attach_count,
NULL AS thread_read_date,
0 AS user_post_count,
permission.cache_value AS node_permission_cache
FROM xf_thread AS thread
LEFT JOIN xf_user AS user ON
(user.user_id = thread.user_id)
LEFT JOIN xf_node AS node ON
(node.node_id = thread.node_id)
LEFT JOIN xf_post AS post ON
(post.post_id = thread.first_post_id)
LEFT JOIN xf_permission_cache_content AS permission
ON (permission.permission_combination_id = 1
AND permission.content_type = 'node'
AND permission.content_id = thread.node_id)
WHERE thread.thread_id IN (41824, 41619, 41554, 41542, 41508, 41359, 41351, 41228, 41121, 41079, 40857, 40717, 40683, 40677, 40619, 40560, 40499, 40462, 40410, 40222, 40116, 40080, 40062, 39892, 39873, 39611, 39602, 39488, 39245, 39180, 39129, 38879, 38871, 38845, 38812, 38777, 38742, 38694, 38689, 38657, 38621, 38600, 38594, 38535, 38447, 38445, 38414, 38408, 38403, 38318, 38296, 38236, 38183, 38162, 38148, 38058, 37947, 37936, 37899, 37874, 37858, 37781, 37617, 37548, 37486, 37401, 37287, 37126, 37104, 36984, 36935, 36919, 36760)
Run Time: 0.003376
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | thread | range | PRIMARY | PRIMARY | 4 | | 73 | Using where |
SIMPLE | user | eq_ref | PRIMARY | PRIMARY | 4 | terrcouk_ssxenforo.thread.user_id | 1 | |
SIMPLE | node | eq_ref | PRIMARY | PRIMARY | 4 | terrcouk_ssxenforo.thread.node_id | 1 | |
SIMPLE | post | eq_ref | PRIMARY | PRIMARY | 4 | terrcouk_ssxenforo.thread.first_post_id | 1 | |
SIMPLE | permission | eq_ref | PRIMARY | PRIMARY | 35 | const,const,terrcouk_ssxenforo.thread.node_id | 1 | Using where |
INSERT INTO xf_tag_result_cache
(tag_id, user_id, cache_date, expiry_date, results)
VALUES
(?, ?, ?, ?, ?)
ON DUPLICATE KEY UPDATE
cache_date = VALUES(cache_date),
expiry_date = VALUES(expiry_date),
results = VALUES(results)
Params: 77, 0, 1713569530, 1713573130, [["thread",41824],["thread",41619],["thread",41554],["thread",41542],["thread",41508],["thread",41359],["thread",41351],["thread",41228],["thread",41121],["thread",41079],["thread",40857],["thread",40717],["thread",40683],["thread",40677],["thread",40619],["thread",40560],["thread",40499],["thread",40462],["thread",40410],["thread",40222],["thread",40116],["thread",40080],["thread",40062],["thread",39892],["thread",39873],["thread",39611],["thread",39602],["thread",39488],["thread",39245],["thread",39180],["thread",39129],["thread",38879],["thread",38871],["thread",38845],["thread",38812],["thread",38777],["thread",38742],["thread",38694],["thread",38689],["thread",38657],["thread",38621],["thread",38600],["thread",38594],["thread",38535],["thread",38447],["thread",38445],["thread",38414],["thread",38408],["thread",38403],["thread",38318],["thread",38296],["thread",38236],["thread",38183],["thread",38162],["thread",38148],["thread",38058],["thread",37947],["thread",37936],["thread",37899],["thread",37874],["thread",37858],["thread",37781],["thread",37617],["thread",37548],["thread",37486],["thread",37401],["thread",37287],["thread",37126],["thread",37104],["thread",36984],["thread",36935],["thread",36919],["thread",36760]]
Run Time: 0.000650
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_Tag, Tag, valid, tag_url=piaggio&page=4, 1713569530,
Run Time: 0.000128