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 (100303, 101347, 56810, 100493, 101395, 99984, 101392, 101382, 101396, 55126, 198, 101002, 94675, 101388, 99677, 35574, 101391, 101393, 101300, 101389, 101387, 101390, 75470, 101394, 61472, 101373, 12061, 101141, 101381, 101374, 101385, 99782, 96978, 100880, 99218, 97430, 101362, 101380, 101386, 92042, 101189, 101384, 101383, 101379, 99982, 101375, 101371, 101378, 101363, 101126, 101352, 101342, 98213, 101366, 101361, 101297, 101360, 77793, 101335, 101334, 101364, 101377, 101343, 101340, 101349, 101370, 101376, 100839, 101356, 53455, 100948, 101310, 101369, 101346, 99623, 101341, 101365, 101368, 101302, 68437, 99246, 101367, 101359, 101354, 101283, 101358, 101357, 101260, 101353, 101351, 101355, 13966, 79992, 101345, 101129, 101350, 101348, 101238, 101332, 101336, 101337, 101065, 101339, 101321, 101307, 100960, 101309, 101338, 101293, 98146, 101311, 101253, 101261, 101280, 101190, 101325, 101312, 101316, 101333, 101301, 101331, 99354, 101305, 101327, 101323, 101308, 101296, 101246, 101299, 101292, 101286, 101287, 101288, 101285, 101289, 101235, 101281, 101329, 60769, 101326, 101282, 101320, 101210, 100440, 101324, 101315, 101322, 101317, 96636, 99414, 100896, 101319, 101318, 101306, 101314, 101313, 101304, 101295, 98182, 98593, 101279, 101303, 101271, 100289, 101294, 101272, 101298, 101267, 74019, 101290, 87740, 101284, 101276, 101278, 101250, 101152, 101270, 100145, 101277, 101245, 101244, 101242, 101273, 97293, 101146, 101269, 101268, 101041, 100937, 101264, 90886, 101265, 101256, 101266, 96904, 101221, 101197, 101258, 78369, 101263)
Run Time: 0.003357
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | thread | range | PRIMARY | PRIMARY | 4 | | 200 | 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",100303],["thread",101347],["thread",56810],["thread",100493],["thread",101395],["thread",99984],["thread",101392],["thread",101382],["thread",101396],["thread",55126],["thread",198],["thread",101002],["thread",94675],["thread",101388],["thread",99677],["thread",35574],["thread",101391],["thread",101393],["thread",101300],["thread",101389],["thread",101387],["thread",101390],["thread",75470],["thread",101394],["thread",61472],["thread",101373],["thread",12061],["thread",101141],["thread",101381],["thread",101374],["thread",101385],["thread",99782],["thread",96978],["thread",100880],["thread",99218],["thread",97430],["thread",101362],["thread",101380],["thread",101386],["thread",92042],["thread",101189],["thread",101384],["thread",101383],["thread",101379],["thread",99982],["thread",101375],["thread",101371],["thread",101378],["thread",101363],["thread",101126],["thread",101352],["thread",101342],["thread",98213],["thread",101366],["thread",101361],["thread",101297],["thread",101360],["thread",77793],["thread",101335],["thread",101334],["thread",101364],["thread",101377],["thread",101343],["thread",101340],["thread",101349],["thread",101370],["thread",101376],["thread",100839],["thread",101356],["thread",53455],["thread",100948],["thread",101310],["thread",101369],["thread",101346],["thread",101341],["thread",101365],["thread",101368],["thread",101302],["thread",68437],["thread",99246],["thread",101367],["thread",101359],["thread",101354],["thread",101283],["thread",101358],["thread",101357],["thread",101260],["thread",101353],["thread",101351],["thread",101355],["thread",13966],["thread",79992],["thread",101345],["thread",101129],["thread",101350],["thread",101348],["thread",101238],["thread",101332],["thread",101336],["thread",101337],["thread",101065],["thread",101339],["thread",101321],["thread",101307],["thread",100960],["thread",101309],["thread",101338],["thread",101293],["thread",98146],["thread",101311],["thread",101253],["thread",101261],["thread",101280],["thread",101190],["thread",101325],["thread",101312],["thread",101316],["thread",101301],["thread",101331],["thread",99354],["thread",101305],["thread",101327],["thread",101323],["thread",101308],["thread",101296],["thread",101246],["thread",101299],["thread",101292],["thread",101286],["thread",101287],["thread",101288],["thread",101285],["thread",101289],["thread",101235],["thread",101281],["thread",101329],["thread",60769],["thread",101326],["thread",101282],["thread",101320],["thread",101210],["thread",100440],["thread",101324],["thread",101315],["thread",101322],["thread",101317],["thread",96636],["thread",99414],["thread",100896],["thread",101319],["thread",101318],["thread",101306],["thread",101314],["thread",101313],["thread",101304],["thread",101295],["thread",98182],["thread",98593],["thread",101279],["thread",101303],["thread",101271],["thread",100289],["thread",101294],["thread",101272],["thread",101298],["thread",101267],["thread",74019],["thread",101290],["thread",87740],["thread",101284],["thread",101276],["thread",101278],["thread",101250],["thread",101152],["thread",101270],["thread",100145],["thread",101277],["thread",101245],["thread",101244],["thread",101242],["thread",101273],["thread",101146],["thread",101269],["thread",101268],["thread",101041],["thread",100937],["thread",101264],["thread",90886],["thread",101265],["thread",101256],["thread",101266],["thread",96904],["thread",101221],["thread",101197],["thread",101258],["thread",78369],["thread",101263]], 197, recent-posts, , [], date, 0, , [], 0, 1716168842, 33d9f6025f582b3ef32bd337677090fe
Run Time: 0.000590