SELECT thread.*
,
user.*, IF(user.username IS NULL, thread.username, user.username) AS username,
node.title AS node_title, node.node_name,
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_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 (102220, 102222, 102134, 102224, 55126, 102223, 102206, 102219, 102204, 56810, 102201, 61472, 102215, 102208, 102221, 102210, 82646, 100493, 102202, 102213, 102045, 102216, 102218, 102214, 102121, 102217, 35574, 102195, 102211, 102180, 92042, 102135, 102209, 102212, 102198, 101966, 101190, 102196, 102207, 90126, 97183, 102139, 102199, 102193, 102200, 102185, 102203, 102205, 102197, 102007, 102194, 100711, 102055, 99694, 101742, 102168, 102187, 102192, 102190, 97366, 102189, 100489, 102186, 102191, 102188, 102181, 102141, 102179, 102170, 102017, 102130, 102184, 101881, 101888, 102183, 102177, 102034, 102182, 102178, 102146, 102167, 90886, 102108, 102159, 102174, 102175, 102176, 102151, 20121, 99290, 102171, 102172, 102173, 60956, 102111, 102154, 102124, 102161, 102156, 102169, 102165, 102166, 102157, 77793, 5048, 102004, 102164, 102163, 102150, 97429, 102162, 102149, 100301, 102160, 102158, 102116, 102152, 102142, 35599, 102153, 102155, 102145, 102147, 102010, 102148, 102140, 102143, 101979, 99218, 102061, 102144, 102137, 10127, 102138, 102136, 102114, 102131, 102129, 100733, 102106, 102133, 102126, 102132, 102127, 101883, 102082, 102128, 102123, 101865, 102086, 101955, 70528, 102125, 102120, 102118, 101229, 102122, 102110, 92043, 102112, 102109, 92789, 102115, 101916, 87862, 102064, 102107, 102098, 102089, 102102, 102105, 102097, 102073, 101999, 102104, 102103, 102100, 101854, 102101, 101745, 102092, 102077, 67917, 102085)
Run Time: 0.005130
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | thread | range | PRIMARY | PRIMARY | 4 | | 184 | Using index condition |
SIMPLE | user | eq_ref | PRIMARY | PRIMARY | 4 | thelatebayv2_.thread.user_id | 1 | |
SIMPLE | node | eq_ref | PRIMARY | PRIMARY | 4 | thelatebayv2_.thread.node_id | 1 | |
SIMPLE | permission | eq_ref | PRIMARY | PRIMARY | 35 | const,const,thelatebayv2_.thread.node_id | 1 | Using where |
INSERT INTO `xf_search` (`search_results`, `result_count`, `search_type`, `search_query`, `search_constraints`, `search_order`, `search_grouping`, `user_results`, `warnings`, `user_id`, `search_date`, `query_hash`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Params: [["thread",102220],["thread",102222],["thread",102134],["thread",102224],["thread",55126],["thread",102223],["thread",102206],["thread",102219],["thread",102204],["thread",56810],["thread",102201],["thread",61472],["thread",102215],["thread",102208],["thread",102221],["thread",102210],["thread",82646],["thread",100493],["thread",102202],["thread",102213],["thread",102045],["thread",102216],["thread",102218],["thread",102214],["thread",102121],["thread",102217],["thread",35574],["thread",102195],["thread",102211],["thread",102180],["thread",92042],["thread",102135],["thread",102209],["thread",102212],["thread",102198],["thread",101966],["thread",101190],["thread",102196],["thread",102207],["thread",90126],["thread",97183],["thread",102139],["thread",102199],["thread",102193],["thread",102200],["thread",102185],["thread",102203],["thread",102205],["thread",102197],["thread",102007],["thread",102194],["thread",100711],["thread",102055],["thread",99694],["thread",101742],["thread",102168],["thread",102187],["thread",102192],["thread",102190],["thread",97366],["thread",102189],["thread",100489],["thread",102186],["thread",102191],["thread",102188],["thread",102181],["thread",102141],["thread",102179],["thread",102170],["thread",102017],["thread",102130],["thread",102184],["thread",101881],["thread",101888],["thread",102183],["thread",102177],["thread",102034],["thread",102182],["thread",102178],["thread",102146],["thread",102167],["thread",90886],["thread",102108],["thread",102159],["thread",102174],["thread",102175],["thread",102176],["thread",102151],["thread",20121],["thread",99290],["thread",102171],["thread",102172],["thread",102173],["thread",60956],["thread",102111],["thread",102154],["thread",102124],["thread",102161],["thread",102156],["thread",102169],["thread",102165],["thread",102166],["thread",102157],["thread",77793],["thread",5048],["thread",102004],["thread",102164],["thread",102163],["thread",102150],["thread",97429],["thread",102162],["thread",102149],["thread",100301],["thread",102160],["thread",102158],["thread",102116],["thread",102152],["thread",102142],["thread",35599],["thread",102153],["thread",102155],["thread",102145],["thread",102147],["thread",102010],["thread",102148],["thread",102140],["thread",102143],["thread",101979],["thread",99218],["thread",102061],["thread",102144],["thread",102137],["thread",10127],["thread",102138],["thread",102136],["thread",102114],["thread",102131],["thread",102129],["thread",100733],["thread",102106],["thread",102133],["thread",102126],["thread",102132],["thread",102127],["thread",101883],["thread",102082],["thread",102128],["thread",102123],["thread",101865],["thread",102086],["thread",101955],["thread",70528],["thread",102125],["thread",102120],["thread",102118],["thread",101229],["thread",102122],["thread",102110],["thread",92043],["thread",102112],["thread",102109],["thread",92789],["thread",102115],["thread",101916],["thread",87862],["thread",102064],["thread",102107],["thread",102098],["thread",102089],["thread",102102],["thread",102105],["thread",102097],["thread",102073],["thread",101999],["thread",102104],["thread",102103],["thread",102100],["thread",101854],["thread",102101],["thread",101745],["thread",102092],["thread",102077],["thread",67917],["thread",102085]], 184, recent-posts, , [], date, 0, , [], 0, 1731266317, 33d9f6025f582b3ef32bd337677090fe
Run Time: 0.000418