SELECT
post.*
,
thread.*, thread.user_id AS thread_user_id, thread.username AS thread_username,
thread.post_date AS thread_post_date,
post.user_id, post.username, post.post_date,
node.title AS node_title, node.node_name,
user.*, IF(user.username IS NULL, post.username, user.username) AS username,
permission.cache_value AS node_permission_cache
FROM xf_post AS post
INNER JOIN xf_thread AS thread ON
(thread.thread_id = post.thread_id)
INNER 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)
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 post.post_id IN (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 24, 25, 28, 29, 30, 31, 32, 34, 35, 36, 37, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 206, 207, 208, 209, 210, 211, 212, 213)
Run Time: 0.006648
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | post | range | PRIMARY,thread_id_post_date,thread_id_position | PRIMARY | 4 | | 200 | Using where |
SIMPLE | thread | eq_ref | PRIMARY,node_id_last_post_date,node_id_sticky_state_last_post | PRIMARY | 4 | ccxsccxs_dd.post.thread_id | 1 | |
SIMPLE | node | eq_ref | PRIMARY | PRIMARY | 4 | ccxsccxs_dd.thread.node_id | 1 | |
SIMPLE | user | eq_ref | PRIMARY | PRIMARY | 4 | ccxsccxs_dd.post.user_id | 1 | |
SIMPLE | permission | eq_ref | PRIMARY | PRIMARY | 35 | const,const,ccxsccxs_dd.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: [["post",2],["post",3],["post",4],["post",5],["post",6],["post",7],["post",8],["post",9],["post",10],["post",11],["post",12],["post",13],["post",14],["post",15],["post",16],["post",17],["post",18],["post",19],["post",20],["post",21],["post",22],["post",24],["post",25],["post",28],["post",29],["post",30],["post",31],["post",32],["post",34],["post",35],["post",36],["post",37],["post",39],["post",40],["post",41],["post",42],["post",43],["post",44],["post",45],["post",46],["post",47],["post",48],["post",49],["post",50],["post",51],["post",55],["post",56],["post",57],["post",58],["post",59],["post",60],["post",61],["post",62],["post",63],["post",64],["post",65],["post",66],["post",67],["post",68],["post",69],["post",70],["post",71],["post",72],["post",73],["post",74],["post",75],["post",76],["post",77],["post",78],["post",79],["post",80],["post",81],["post",82],["post",83],["post",84],["post",85],["post",86],["post",87],["post",88],["post",89],["post",90],["post",91],["post",92],["post",93],["post",94],["post",95],["post",96],["post",97],["post",98],["post",99],["post",100],["post",101],["post",102],["post",103],["post",104],["post",105],["post",106],["post",107],["post",108],["post",109],["post",110],["post",111],["post",112],["post",113],["post",114],["post",115],["post",116],["post",117],["post",118],["post",119],["post",120],["post",121],["post",122],["post",124],["post",125],["post",126],["post",127],["post",128],["post",129],["post",130],["post",131],["post",132],["post",133],["post",134],["post",135],["post",136],["post",137],["post",138],["post",139],["post",140],["post",141],["post",142],["post",144],["post",145],["post",146],["post",147],["post",152],["post",153],["post",154],["post",155],["post",156],["post",157],["post",158],["post",159],["post",160],["post",161],["post",162],["post",163],["post",164],["post",165],["post",166],["post",167],["post",168],["post",169],["post",170],["post",171],["post",172],["post",173],["post",174],["post",175],["post",176],["post",177],["post",178],["post",179],["post",180],["post",182],["post",183],["post",184],["post",185],["post",186],["post",187],["post",188],["post",189],["post",190],["post",191],["post",192],["post",193],["post",194],["post",195],["post",196],["post",197],["post",198],["post",199],["post",200],["post",201],["post",202],["post",203],["post",206],["post",207],["post",208],["post",209],["post",210],["post",211],["post",212],["post",213]], 195, recent-post-comments, , [], date, 0, , [], 0, 1715744266, 8f68cad4e7cdfc704e8e750e2d4cb8f2
Run Time: 0.000836