Page Time: 0.1869s

Memory: 13.8191 MB (Peak: 14.9142 MB)

Queries (44, time: 0.0079s, 4.2%)

  1. SELECT data_key, data_value
    FROM xf_data_registry
    WHERE data_key IN ('options', 'languages', 'contentTypes', 'codeEventListeners', 'deferredRun', 'simpleCache', 'addOns', 'defaultStyleProperties', 'routeFiltersIn', 'routeFiltersOut', 'routesPublic', 'nodeTypes', 'bannedIps', 'discouragedIps', 'styles', 'displayStyles', 'userBanners', 'smilies', 'bbCode', 'threadPrefixes', 'userTitleLadder', 'reportCounts', 'moderationCounts', 'userModerationCounts', 'notices', 'userFieldsInfo')
    Run Time: 0.000239
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_data_registryrangePRIMARYPRIMARY27 26Using index condition
  2. SELECT data_key, data_value
    FROM xf_data_registry
    WHERE data_key IN ('brListenerClasses', 'brBriviumAddOns')
    Run Time: 0.000065
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_data_registryrangePRIMARYPRIMARY27 2Using index condition
  3. SELECT cache_value
    FROM xf_permission_combination
    WHERE permission_combination_id = ?
    Params: 1
    Run Time: 0.000075
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_combinationconstPRIMARYPRIMARY4const1 
  4. SELECT data_value
    FROM xf_data_registry
    WHERE data_key = ?
    Params: dark_postrating_ratings
    Run Time: 0.000066
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_data_registryconstPRIMARYPRIMARY27const1 
  5. SELECT thread.*
    	,
    		user.gender, user.avatar_date, user.gravatar,
    		NULL AS thread_read_date,
    		0 AS thread_reply_banned,
    		0 AS thread_is_watched,
    		'' AS draft_message, NULL AS draft_extra
    FROM xf_thread AS thread
    
    		LEFT JOIN xf_user AS user ON
    			(user.user_id = thread.user_id)
    WHERE thread.thread_id = ?
    Params: 67673
    Run Time: 0.000187
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEthreadconstPRIMARYPRIMARY4const1 
    SIMPLEuserconstPRIMARYPRIMARY4const1 
  6. SELECT node.*, forum.*
    	,
    	permission.cache_value AS node_permission_cache,
    		NULL AS forum_read_date
    FROM xf_forum AS forum
    INNER JOIN xf_node AS node ON (node.node_id = forum.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 = forum.node_id)
    WHERE node.node_id = ?
    Params: 10
    Run Time: 0.000273
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEforumconstPRIMARYPRIMARY4const1 
    SIMPLEnodeconstPRIMARYPRIMARY4const1 
    SIMPLEpermissionconstPRIMARYPRIMARY35const,const,const1 
  7. SELECT post.*
    	,
    		bb_code_parse_cache.parse_tree AS message_parsed, bb_code_parse_cache.cache_version AS message_cache_version,
    		user.*, IF(user.username IS NULL, post.username, user.username) AS username,
    		user_profile.*,
    		user_privacy.*,
    		signature_parse_cache.parse_tree AS signature_parsed, bb_code_parse_cache.cache_version AS signature_cache_version,
    		session_activity.view_date AS last_view_date,
    		0 AS like_date
    		,(select sum(count_received) from dark_postrating_count where user_id = post.user_id and rating in (1,14,2,4,5,6,7,8,10)) as positive_rating_count
    	
    		,(select sum(count_received) from dark_postrating_count where user_id = post.user_id and rating in (11,12,13)) as negative_rating_count
    	
    		,(select sum(count_received) from dark_postrating_count where user_id = post.user_id and rating in (3,9)) as neutral_rating_count
    	,
    pr_cache.rating_cache,
    pr2.rating
    FROM xf_post AS post
    
    		LEFT JOIN xf_bb_code_parse_cache AS bb_code_parse_cache ON
    			(bb_code_parse_cache.content_type = 'post' AND bb_code_parse_cache.content_id = post.post_id)
    		LEFT JOIN xf_user AS user ON
    			(user.user_id = post.user_id)
    		LEFT JOIN xf_user_profile AS user_profile ON
    			(user_profile.user_id = post.user_id)
    		LEFT JOIN xf_user_privacy AS user_privacy ON
    			(user_privacy.user_id = post.user_id)
    		LEFT JOIN xf_bb_code_parse_cache AS signature_parse_cache ON
    			(signature_parse_cache.content_type = 'signature' AND signature_parse_cache.content_id = post.user_id)
    		LEFT JOIN xf_session_activity AS session_activity ON
    			(post.user_id > 0 AND session_activity.user_id = post.user_id AND session_activity.unique_key = CAST(post.user_id AS BINARY))
    left join dark_postrating_post_cache pr_cache ON (post.post_id = pr_cache.post_id)
    left join dark_postrating pr2 on (post.post_id = pr2.post_id and pr2.user_id = 0)
    WHERE post.thread_id = ?
    	 AND (post.position >= 0 AND post.position < 20) 
    	AND (post.message_state IN ('visible'))
    ORDER BY post.position ASC, post.post_date ASC
    Params: 67673
    Run Time: 0.002733
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    PRIMARYpostrangethread_id_post_date,thread_id_positionthread_id_position8 5Using index condition; Using where; Using filesort
    PRIMARYbb_code_parse_cacheeq_refcontent_type_idcontent_type_id31const,tmviet_hnd.post.post_id1Using where
    PRIMARYusereq_refPRIMARYPRIMARY4tmviet_hnd.post.user_id1 
    PRIMARYuser_profileeq_refPRIMARYPRIMARY4tmviet_hnd.post.user_id1 
    PRIMARYuser_privacyeq_refPRIMARYPRIMARY4tmviet_hnd.post.user_id1 
    PRIMARYsignature_parse_cacheeq_refcontent_type_idcontent_type_id31const,tmviet_hnd.post.user_id1Using where
    PRIMARYsession_activityeq_refPRIMARYPRIMARY22tmviet_hnd.post.user_id,func1Using where
    PRIMARYpr_cacheeq_refPRIMARYPRIMARY4tmviet_hnd.post.post_id1 
    PRIMARYpr2eq_refpost_id_user_id,post_id_rating,user_id_ratingpost_id_user_id8tmviet_hnd.post.post_id,const1 
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4tmviet_hnd.post.user_id1Using index condition
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4tmviet_hnd.post.user_id1Using index condition
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4tmviet_hnd.post.user_id1Using index condition
  8. select max(post_date) as user_post_date from xf_post where user_id=?
    Params: 7261
    Run Time: 0.000068
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_postrefuser_iduser_id4const5 
  9. select max(log_date) as user_login_date from xf_ip where user_id=?
    Params: 7261
    Run Time: 0.000061
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLE       Select tables optimized away
  10. SELECT user.*
    	
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (1,14,2,4,5,6,7,8,10)) as positive_rating_count
    
    		, (user.like_count + coalesce((select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (1,14,2,4,5,6,7,8,10)), 0)) as positive_rating_count_incl_likes
    
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (11,12,13)) as negative_rating_count
    
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (3,9)) as neutral_rating_count
    
    ,(select sum(count_received) from dark_postrating_count where user_id = user.user_id) as total_rating_count
    
    FROM xf_user AS user
    
    WHERE user.user_id = ?
    Params: 7261
    Run Time: 0.000183
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    PRIMARYuserconstPRIMARYPRIMARY4const1 
    SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4const1 
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 2Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 3Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 9Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 9Using index condition
  11. select max(post_date) as user_post_date from xf_post where user_id=?
    Params: 6345
    Run Time: 0.000055
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_postrefuser_iduser_id4const2 
  12. select max(log_date) as user_login_date from xf_ip where user_id=?
    Params: 6345
    Run Time: 0.000047
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLE       Select tables optimized away
  13. SELECT user.*
    	
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (1,14,2,4,5,6,7,8,10)) as positive_rating_count
    
    		, (user.like_count + coalesce((select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (1,14,2,4,5,6,7,8,10)), 0)) as positive_rating_count_incl_likes
    
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (11,12,13)) as negative_rating_count
    
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (3,9)) as neutral_rating_count
    
    ,(select sum(count_received) from dark_postrating_count where user_id = user.user_id) as total_rating_count
    
    FROM xf_user AS user
    
    WHERE user.user_id = ?
    Params: 6345
    Run Time: 0.000180
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    PRIMARYuserconstPRIMARYPRIMARY4const1 
    SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4const1 
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 2Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 3Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 9Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 9Using index condition
  14. select max(post_date) as user_post_date from xf_post where user_id=?
    Params: 7397
    Run Time: 0.000046
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_postrefuser_iduser_id4const3 
  15. select max(log_date) as user_login_date from xf_ip where user_id=?
    Params: 7397
    Run Time: 0.000045
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLE       Select tables optimized away
  16. SELECT user.*
    	
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (1,14,2,4,5,6,7,8,10)) as positive_rating_count
    
    		, (user.like_count + coalesce((select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (1,14,2,4,5,6,7,8,10)), 0)) as positive_rating_count_incl_likes
    
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (11,12,13)) as negative_rating_count
    
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (3,9)) as neutral_rating_count
    
    ,(select sum(count_received) from dark_postrating_count where user_id = user.user_id) as total_rating_count
    
    FROM xf_user AS user
    
    WHERE user.user_id = ?
    Params: 7397
    Run Time: 0.000177
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    PRIMARYuserconstPRIMARYPRIMARY4const1 
    SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4const1 
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 2Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 3Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 9Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 9Using index condition
  17. select max(post_date) as user_post_date from xf_post where user_id=?
    Params: 7138
    Run Time: 0.000049
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_postrefuser_iduser_id4const254 
  18. select max(log_date) as user_login_date from xf_ip where user_id=?
    Params: 7138
    Run Time: 0.000043
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLE       Select tables optimized away
  19. SELECT user.*
    	
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (1,14,2,4,5,6,7,8,10)) as positive_rating_count
    
    		, (user.like_count + coalesce((select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (1,14,2,4,5,6,7,8,10)), 0)) as positive_rating_count_incl_likes
    
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (11,12,13)) as negative_rating_count
    
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (3,9)) as neutral_rating_count
    
    ,(select sum(count_received) from dark_postrating_count where user_id = user.user_id) as total_rating_count
    
    FROM xf_user AS user
    
    WHERE user.user_id = ?
    Params: 7138
    Run Time: 0.000180
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    PRIMARYuserconstPRIMARYPRIMARY4const1 
    SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4const1 
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 2Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 3Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 9Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 9Using index condition
  20. select max(post_date) as user_post_date from xf_post where user_id=?
    Params: 7817
    Run Time: 0.000046
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_postrefuser_iduser_id4const4 
  21. select max(log_date) as user_login_date from xf_ip where user_id=?
    Params: 7817
    Run Time: 0.000042
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLE       Select tables optimized away
  22. SELECT user.*
    	
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (1,14,2,4,5,6,7,8,10)) as positive_rating_count
    
    		, (user.like_count + coalesce((select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (1,14,2,4,5,6,7,8,10)), 0)) as positive_rating_count_incl_likes
    
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (11,12,13)) as negative_rating_count
    
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (3,9)) as neutral_rating_count
    
    ,(select sum(count_received) from dark_postrating_count where user_id = user.user_id) as total_rating_count
    
    FROM xf_user AS user
    
    WHERE user.user_id = ?
    Params: 7817
    Run Time: 0.000175
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    PRIMARYuserconstPRIMARYPRIMARY4const1 
    SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4const1 
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 2Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 3Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 9Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 9Using index condition
  23. select max(post_date) as user_post_date from xf_post where user_id=?
    Params: 7396
    Run Time: 0.000050
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_postrefuser_iduser_id4const43 
  24. select max(log_date) as user_login_date from xf_ip where user_id=?
    Params: 7396
    Run Time: 0.000049
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLE       Select tables optimized away
  25. SELECT user.*
    	
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (1,14,2,4,5,6,7,8,10)) as positive_rating_count
    
    		, (user.like_count + coalesce((select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (1,14,2,4,5,6,7,8,10)), 0)) as positive_rating_count_incl_likes
    
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (11,12,13)) as negative_rating_count
    
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (3,9)) as neutral_rating_count
    
    ,(select sum(count_received) from dark_postrating_count where user_id = user.user_id) as total_rating_count
    
    FROM xf_user AS user
    
    WHERE user.user_id = ?
    Params: 7396
    Run Time: 0.000199
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    PRIMARYuserconstPRIMARYPRIMARY4const1 
    SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4const1 
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 2Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 3Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 9Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 9Using index condition
  26. SELECT `user_id`, `position`
     	FROM `xf_post`
     	WHERE `thread_id` = ? AND `message_state` = "visible"
    ORDER BY `position` ASC
    Params: 67673
    Run Time: 0.000059
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_postrefthread_id_post_date,thread_id_positionthread_id_position4const6Using where
  27. INSERT  INTO xf_thread_view
    	(thread_id)
    VALUES
    	(?)
    Params: 67673
    Run Time: 0.000045
  28. SELECT thread_id, title, last_post_id , post_date 
    FROM `xf_thread` 
    WHERE node_id='10' 
    ORDER BY post_date DESC 
    LIMIT 0, 10
    Run Time: 0.000067
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_threadrefnode_id_last_post_date,node_id_sticky_state_last_postnode_id_last_post_date4const51Using where; Using filesort
  29. SELECT *
    FROM xf_node
    
    ORDER BY lft ASC
    Run Time: 0.000161
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_nodeALL    69Using filesort
  30. SELECT content_id, cache_value
    FROM xf_permission_cache_content
    WHERE permission_combination_id = ?
    	AND content_type = 'node'
    Params: 1
    Run Time: 0.000129
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_cache_contentrefPRIMARYPRIMARY31const,const69Using index condition
  31. SELECT params
    FROM xf_session_activity
    WHERE user_id = '0'
    AND controller_action = 'CreateThread'
    Run Time: 0.000184
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_session_activityrefPRIMARYPRIMARY4const145Using where
  32. SELECT xf_thread.thread_id, xf_thread.title, xf_thread.node_id, xf_node.title AS nodetitle, xf_thread.post_date
    FROM xf_thread
    INNER JOIN xf_node ON xf_node.node_id = xf_thread.node_id
    WHERE xf_thread.title LIKE '%Hướng%'
    AND xf_thread.title LIKE '%dẫn%'
    AND xf_thread.discussion_state = 'visible'
    AND xf_thread.discussion_type <> 'redirect'
    AND (xf_thread.node_id = 1 OR xf_thread.node_id = 2 OR xf_thread.node_id = 3 OR xf_thread.node_id = 4 OR xf_thread.node_id = 5 OR xf_thread.node_id = 6 OR xf_thread.node_id = 7 OR xf_thread.node_id = 8 OR xf_thread.node_id = 9 OR xf_thread.node_id = 10 OR xf_thread.node_id = 11 OR xf_thread.node_id = 12 OR xf_thread.node_id = 13 OR xf_thread.node_id = 14 OR xf_thread.node_id = 15 OR xf_thread.node_id = 16 OR xf_thread.node_id = 17 OR xf_thread.node_id = 18 OR xf_thread.node_id = 21 OR xf_thread.node_id = 19 OR xf_thread.node_id = 20 OR xf_thread.node_id = 22 OR xf_thread.node_id = 23 OR xf_thread.node_id = 24 OR xf_thread.node_id = 25 OR xf_thread.node_id = 26 OR xf_thread.node_id = 27 OR xf_thread.node_id = 28 OR xf_thread.node_id = 29 OR xf_thread.node_id = 30 OR xf_thread.node_id = 31 OR xf_thread.node_id = 32 OR xf_thread.node_id = 33 OR xf_thread.node_id = 34 OR xf_thread.node_id = 35 OR xf_thread.node_id = 36 OR xf_thread.node_id = 37 OR xf_thread.node_id = 38 OR xf_thread.node_id = 39 OR xf_thread.node_id = 41 OR xf_thread.node_id = 68 OR xf_thread.node_id = 69 OR xf_thread.node_id = 70 OR xf_thread.node_id = 40 OR xf_thread.node_id = 42 OR xf_thread.node_id = 43 OR xf_thread.node_id = 45 OR xf_thread.node_id = 46 OR xf_thread.node_id = 47 OR xf_thread.node_id = 48 OR xf_thread.node_id = 44 OR xf_thread.node_id = 49 OR xf_thread.node_id = 51 OR xf_thread.node_id = 52 OR xf_thread.node_id = 71 OR xf_thread.node_id = 54 OR xf_thread.node_id = 55 OR xf_thread.node_id = 60 OR xf_thread.node_id = 61 OR xf_thread.node_id = 62 OR xf_thread.node_id = 63 OR xf_thread.node_id = 64 OR xf_thread.node_id = 65 OR xf_thread.node_id = 56 OR xf_thread.node_id = 66 OR xf_thread.node_id = 67 OR xf_thread.node_id = 57 OR xf_thread.node_id = 58 OR xf_thread.node_id = 59)
    AND xf_thread.thread_id <> '67673'
    AND xf_thread.node_id = '10'
    
    ORDER BY xf_thread.thread_id DESC
    LIMIT 5
    Run Time: 0.000093
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_nodeconstPRIMARYPRIMARY4const1Using filesort
    SIMPLExf_threadrefPRIMARY,node_id_last_post_date,node_id_sticky_state_last_postnode_id_last_post_date4const51Using index condition; Using where
  33. SELECT xf_thread.thread_id, xf_thread.title, xf_thread.node_id, xf_node.title AS nodetitle, xf_thread.post_date
    FROM xf_thread
    INNER JOIN xf_node ON xf_node.node_id = xf_thread.node_id
    WHERE xf_thread.title LIKE '%Hướng%'
    AND xf_thread.discussion_state = 'visible'
    AND xf_thread.discussion_type <> 'redirect'
    AND (xf_thread.node_id = 1 OR xf_thread.node_id = 2 OR xf_thread.node_id = 3 OR xf_thread.node_id = 4 OR xf_thread.node_id = 5 OR xf_thread.node_id = 6 OR xf_thread.node_id = 7 OR xf_thread.node_id = 8 OR xf_thread.node_id = 9 OR xf_thread.node_id = 10 OR xf_thread.node_id = 11 OR xf_thread.node_id = 12 OR xf_thread.node_id = 13 OR xf_thread.node_id = 14 OR xf_thread.node_id = 15 OR xf_thread.node_id = 16 OR xf_thread.node_id = 17 OR xf_thread.node_id = 18 OR xf_thread.node_id = 21 OR xf_thread.node_id = 19 OR xf_thread.node_id = 20 OR xf_thread.node_id = 22 OR xf_thread.node_id = 23 OR xf_thread.node_id = 24 OR xf_thread.node_id = 25 OR xf_thread.node_id = 26 OR xf_thread.node_id = 27 OR xf_thread.node_id = 28 OR xf_thread.node_id = 29 OR xf_thread.node_id = 30 OR xf_thread.node_id = 31 OR xf_thread.node_id = 32 OR xf_thread.node_id = 33 OR xf_thread.node_id = 34 OR xf_thread.node_id = 35 OR xf_thread.node_id = 36 OR xf_thread.node_id = 37 OR xf_thread.node_id = 38 OR xf_thread.node_id = 39 OR xf_thread.node_id = 41 OR xf_thread.node_id = 68 OR xf_thread.node_id = 69 OR xf_thread.node_id = 70 OR xf_thread.node_id = 40 OR xf_thread.node_id = 42 OR xf_thread.node_id = 43 OR xf_thread.node_id = 45 OR xf_thread.node_id = 46 OR xf_thread.node_id = 47 OR xf_thread.node_id = 48 OR xf_thread.node_id = 44 OR xf_thread.node_id = 49 OR xf_thread.node_id = 51 OR xf_thread.node_id = 52 OR xf_thread.node_id = 71 OR xf_thread.node_id = 54 OR xf_thread.node_id = 55 OR xf_thread.node_id = 60 OR xf_thread.node_id = 61 OR xf_thread.node_id = 62 OR xf_thread.node_id = 63 OR xf_thread.node_id = 64 OR xf_thread.node_id = 65 OR xf_thread.node_id = 56 OR xf_thread.node_id = 66 OR xf_thread.node_id = 67 OR xf_thread.node_id = 57 OR xf_thread.node_id = 58 OR xf_thread.node_id = 59)
    AND xf_thread.thread_id <> '67673'
    AND xf_thread.node_id = '10'
    
    AND xf_thread.thread_id <> 46789 AND xf_thread.thread_id <> 8870 AND xf_thread.thread_id <> 117
    ORDER BY xf_thread.thread_id DESC
    LIMIT 2
    Run Time: 0.000075
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_nodeconstPRIMARYPRIMARY4const1Using filesort
    SIMPLExf_threadrefPRIMARY,node_id_last_post_date,node_id_sticky_state_last_postnode_id_last_post_date4const51Using index condition; Using where
  34. SELECT xf_thread.thread_id, xf_thread.title, xf_thread.node_id, xf_node.title AS nodetitle, xf_thread.post_date
    FROM xf_thread
    INNER JOIN xf_node ON xf_node.node_id = xf_thread.node_id
    WHERE xf_thread.title LIKE '%dẫn%'
    AND xf_thread.discussion_state = 'visible'
    AND xf_thread.discussion_type <> 'redirect'
    AND (xf_thread.node_id = 1 OR xf_thread.node_id = 2 OR xf_thread.node_id = 3 OR xf_thread.node_id = 4 OR xf_thread.node_id = 5 OR xf_thread.node_id = 6 OR xf_thread.node_id = 7 OR xf_thread.node_id = 8 OR xf_thread.node_id = 9 OR xf_thread.node_id = 10 OR xf_thread.node_id = 11 OR xf_thread.node_id = 12 OR xf_thread.node_id = 13 OR xf_thread.node_id = 14 OR xf_thread.node_id = 15 OR xf_thread.node_id = 16 OR xf_thread.node_id = 17 OR xf_thread.node_id = 18 OR xf_thread.node_id = 21 OR xf_thread.node_id = 19 OR xf_thread.node_id = 20 OR xf_thread.node_id = 22 OR xf_thread.node_id = 23 OR xf_thread.node_id = 24 OR xf_thread.node_id = 25 OR xf_thread.node_id = 26 OR xf_thread.node_id = 27 OR xf_thread.node_id = 28 OR xf_thread.node_id = 29 OR xf_thread.node_id = 30 OR xf_thread.node_id = 31 OR xf_thread.node_id = 32 OR xf_thread.node_id = 33 OR xf_thread.node_id = 34 OR xf_thread.node_id = 35 OR xf_thread.node_id = 36 OR xf_thread.node_id = 37 OR xf_thread.node_id = 38 OR xf_thread.node_id = 39 OR xf_thread.node_id = 41 OR xf_thread.node_id = 68 OR xf_thread.node_id = 69 OR xf_thread.node_id = 70 OR xf_thread.node_id = 40 OR xf_thread.node_id = 42 OR xf_thread.node_id = 43 OR xf_thread.node_id = 45 OR xf_thread.node_id = 46 OR xf_thread.node_id = 47 OR xf_thread.node_id = 48 OR xf_thread.node_id = 44 OR xf_thread.node_id = 49 OR xf_thread.node_id = 51 OR xf_thread.node_id = 52 OR xf_thread.node_id = 71 OR xf_thread.node_id = 54 OR xf_thread.node_id = 55 OR xf_thread.node_id = 60 OR xf_thread.node_id = 61 OR xf_thread.node_id = 62 OR xf_thread.node_id = 63 OR xf_thread.node_id = 64 OR xf_thread.node_id = 65 OR xf_thread.node_id = 56 OR xf_thread.node_id = 66 OR xf_thread.node_id = 67 OR xf_thread.node_id = 57 OR xf_thread.node_id = 58 OR xf_thread.node_id = 59)
    AND xf_thread.thread_id <> '67673'
    AND xf_thread.node_id = '10'
    
    AND xf_thread.thread_id <> 46789 AND xf_thread.thread_id <> 8870 AND xf_thread.thread_id <> 117
    AND xf_thread.thread_id <> 59521
    ORDER BY xf_thread.thread_id DESC
    LIMIT 1
    Run Time: 0.000066
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_nodeconstPRIMARYPRIMARY4const1Using filesort
    SIMPLExf_threadrefPRIMARY,node_id_last_post_date,node_id_sticky_state_last_postnode_id_last_post_date4const51Using index condition; Using where
  35. INSERT INTO `xf_session` (`session_id`, `session_data`, `expiry_date`) VALUES (?, ?, ?)
    Params: bb044ddd4fea3eb3efc018aaad119149, a:6:{s:12:"sessionStart";i:1529872785;s:2:"ip";s:4:"6ƞ";s:11:"sessionCsrf";s:16:"hsvJYtMnavc3vwFW";s:9:"userAgent";s:39:"CCBot/2.0 (http://commoncrawl.org/faq/)";s:7:"robotId";s:0:"";s:16:"previousActivity";i:0;}, 1529876385
    Run Time: 0.000141
  36. 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, 6ƞ, 6ƞ, XenForo_ControllerPublic_Thread, Index, valid, thread_id=67673, 1529872785,
    Run Time: 0.000088
  37. SELECT thread.*
    	,
    	user.gender, user.avatar_date, user.gravatar
    FROM xf_thread AS thread 
    
    	LEFT JOIN xf_user AS user ON
    		(user.user_id = thread.user_id)
    WHERE ((thread.node_id IN ('2', '3', '4', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '21', '19', '20', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '41', '40', '43', '45', '46', '47', '48', '44', '55', '60', '61', '62', '63', '64', '65', '56', '66', '67', '57', '58', '59')) AND (thread.discussion_state IN ('visible'))) AND (thread.post_date > 1529267985)
    ORDER BY thread.view_count DESC
     LIMIT 30
    Run Time: 0.000212
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEthreadrangenode_id_last_post_date,node_id_sticky_state_last_post,post_datepost_date4 493Using index condition; Using where; Using filesort
    SIMPLEusereq_refPRIMARYPRIMARY4tmviet_hnd.thread.user_id1 
  38. SELECT content_id, cache_value
    FROM xf_permission_cache_content
    WHERE permission_combination_id = ?
    	AND content_type = 'node'
    Params: 1
    Run Time: 0.000130
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_cache_contentrefPRIMARYPRIMARY31const,const69Using index condition
  39. SELECT node.*, forum.*
    	
    FROM xf_forum AS forum
    INNER JOIN xf_node AS node ON (node.node_id = forum.node_id)
    
    WHERE node.node_id IN (29, 37, 46, 23, 59, 23, 9, 13, 44, 4, 23, 23, 10, 23, 22)
    Run Time: 0.000272
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEforumrangePRIMARYPRIMARY4 11Using where
    SIMPLEnodeeq_refPRIMARYPRIMARY4tmviet_hnd.forum.node_id1 
  40. SELECT thread.*
    	,
    	user.gender, user.avatar_date, user.gravatar
    FROM xf_thread AS thread 
    
    	LEFT JOIN xf_user AS user ON
    		(user.user_id = thread.user_id)
    WHERE ((thread.node_id IN ('49', '51', '52')) AND (thread.discussion_state IN ('visible'))) AND (thread.post_date > 1529267985)
    ORDER BY thread.view_count DESC
     LIMIT 30
    Run Time: 0.000158
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEthreadrangenode_id_last_post_date,node_id_sticky_state_last_post,post_datepost_date4 493Using index condition; Using where; Using filesort
    SIMPLEusereq_refPRIMARYPRIMARY4tmviet_hnd.thread.user_id1 
  41. SELECT node.*, forum.*
    	
    FROM xf_forum AS forum
    INNER JOIN xf_node AS node ON (node.node_id = forum.node_id)
    
    WHERE node.node_id IN (52, 52, 52, 52, 52, 51, 51, 52, 51, 51, 51, 52, 52, 52, 51, 52, 52, 51, 51, 52, 52, 51, 51, 51, 51, 51, 52, 52, 51, 52)
    Run Time: 0.000264
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEforumrangePRIMARYPRIMARY4 2Using where
    SIMPLEnodeeq_refPRIMARYPRIMARY4tmviet_hnd.forum.node_id1 
  42. SELECT data_key, data_value
    FROM xf_data_registry
    WHERE data_key IN ('wfc__1_thread_view')
    Run Time: 0.000061
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_data_registryconstPRIMARYPRIMARY27const1 
  43. SELECT session_activity.*
    	,
    	user.*
    FROM xf_session_activity AS session_activity
    
    	LEFT JOIN xf_user AS user ON
    		(user.user_id = session_activity.user_id)
    WHERE (session_activity.view_date > 1529869185)
    ORDER BY session_activity.view_date DESC
    Run Time: 0.000302
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEsession_activityrangeview_dateview_date4 110Using where
    SIMPLEusereq_refPRIMARYPRIMARY4tmviet_hnd.session_activity.user_id1 
  44. SELECT title, phrase_text
    FROM xf_phrase_compiled
    WHERE language_id = ?
    	AND title IN ('members_online_now')
    Params: 2
    Run Time: 0.000068
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_phrase_compiledconstPRIMARYPRIMARY106const,const1 

Included Files (190, XenForo Classes: 71)

  1. index.php
  2. library/XenForo/Autoloader.php
  3. library/XenForo/Application.php
  4. library/Zend/Registry.php
  5. library/Lgpl/utf8.php
  6. library/Zend/Config.php
  7. library/config.php
  8. library/XenForo/FrontController.php
  9. library/XenForo/Dependencies/Public.php
  10. library/XenForo/Dependencies/Abstract.php
  11. library/Zend/Controller/Request/Http.php
  12. library/Zend/Controller/Request/Abstract.php
  13. library/Zend/Uri.php
  14. library/Zend/Controller/Response/Http.php
  15. library/Zend/Controller/Response/Abstract.php
  16. library/XenForo/Model/DataRegistry.php
  17. library/XenForo/Model.php
  18. library/Zend/Db.php
  19. library/Zend/Db/Adapter/Mysqli.php
  20. library/Zend/Db/Adapter/Abstract.php
  21. library/Zend/Db/Select.php
  22. library/Zend/Db/Expr.php
  23. library/Zend/Db/Profiler.php
  24. library/Zend/Db/Statement/Mysqli.php
  25. library/Zend/Db/Statement.php
  26. library/Zend/Db/Statement/Interface.php
  27. library/Zend/Db/Profiler/Query.php
  28. library/XenForo/CodeEvent.php
  29. library/XenForo/Options.php
  30. library/XenForo/Link.php
  31. library/XenForo/Template/Helper/Core.php
  32. library/VietnameseFriendlyLink/Listener.php
  33. library/Tinhte/AttachImageOptimization/Listener.php
  34. library/WidgetFramework/Listener.php
  35. library/WidgetFramework/Option.php
  36. library/Brivium/Tellurium/EventListeners/Listener.php
  37. library/Brivium/BriviumHelper/EventListeners.php
  38. library/Brivium/BriviumHelper/1010071/EventListeners.php
  39. library/Brivium/StyliumFramework/EventListeners/Listener.php
  40. library/Brivium/DoFollowforUsergroup/EventListeners/Listener.php
  41. library/Brivium/BriviumLibrary/EventListeners.php
  42. library/WMS/HideSignature/Listener/Listener.php
  43. library/VietXfAdvStats/Listener.php
  44. library/Brivium/ExtraThreadItem/EventListeners/Listener.php
  45. library/Dark/PostRating/EventListener.php
  46. library/WMS/HideSignature/InitDependency.php
  47. library/WMS/HideSignature/InitDependency/20162301.php
  48. library/Milano/SmileyManager/Listener.php
  49. library/XenForo/Router.php
  50. library/XenForo/Route/Filter.php
  51. library/XenForo/Route/Interface.php
  52. library/XenForo/Route/ResponseSuffix.php
  53. library/XenForo/Route/Prefix.php
  54. library/WidgetFramework/Route/Filter/PageX.php
  55. library/XenForo/Route/Prefix/Threads.php
  56. library/XenForo/RouteMatch.php
  57. library/XenForo/ControllerPublic/Thread.php
  58. library/XenForo/ControllerPublic/Abstract.php
  59. library/XenForo/Controller.php
  60. library/BlockBadWord/Listen.php
  61. library/VietXf/MoreThread/Listener.php
  62. library/LilTee/LimitPostLink/Listener/Listener.php
  63. library/MaxDailyBaiViet/EventListener/BaiViet.php
  64. library/VNXF/ThreadLimit/Listener.php
  65. library/xenCODE/AutoPing/Listener.php
  66. library/VfcodersHH/Listener/LoadClass.php
  67. library/Nobita/DiscussionsPerPage/Listener.php
  68. library/MaxDailyBaiViet/EventListener/ChuDe.php
  69. library/Andy/SimilarThreads/Listener.php
  70. library/BlockBadWord/ThreadHandler.php
  71. library/VietXf/MoreThread/ControllerPublic/Thread.php
  72. library/WidgetFramework/XenForo/ControllerPublic/Thread.php
  73. library/LilTee/LimitPostLink/ControllerPublic/Thread.php
  74. library/MaxDailyBaiViet/ControllerPublic/BaiViet.php
  75. library/VfcodersHH/ControllerPublic/Thread.php
  76. library/Brivium/ExtraThreadItem/ControllerPublic/Thread.php
  77. library/Andy/SimilarThreads/ControllerPublic/Thread.php
  78. library/XenForo/Input.php
  79. library/XenForo/Session.php
  80. library/XenForo/Helper/Ip.php
  81. library/XenForo/Visitor.php
  82. library/XenForo/Model/User.php
  83. library/VietXfAdvStats/XenForo/Model/User.php
  84. library/WidgetFramework/XenForo/Model/User.php
  85. library/Dark/PostRating/Model/User.php
  86. library/XenForo/Permission.php
  87. library/XenForo/Helper/Php.php
  88. library/XenForo/Phrase.php
  89. library/XenForo/Locale.php
  90. library/XenForo/ControllerHelper/ForumThreadPost.php
  91. library/XenForo/ControllerHelper/Abstract.php
  92. library/XenForo/Model/Thread.php
  93. library/VietXfAdvStats/XenForo/Model/Thread.php
  94. library/WidgetFramework/XenForo/Model/Thread.php
  95. library/Brivium/ExtraThreadItem/Model/Thread.php
  96. library/Dark/PostRating/Model/Thread.php
  97. library/Dark/PostRating/Model.php
  98. library/XenForo/Model/Forum.php
  99. library/Brivium/ExtraThreadItem/Model/Forum.php
  100. library/XenForo/Helper/String.php
  101. library/XenForo/Model/Post.php
  102. library/FreddysHouse/SignatureOnce/Event/LoadClassModel.php
  103. library/WMS/HideSignature/Extend/Model/Post.php
  104. library/Dark/PostRating/Model/Post.php
  105. library/FreddysHouse/SignatureOnce/Model/Post.php
  106. library/WMS/HideSignature/Model/HideSignature.php
  107. library/WMS/HideSignature/Helpers/HideSignature.php
  108. library/XenForo/Model/Attachment.php
  109. library/XenForo/Model/Node.php
  110. library/Brivium/ExtraThreadItem/Model/Node.php
  111. library/XenForo/Route/Prefix/Categories.php
  112. library/XenForo/Route/Prefix/Forums.php
  113. library/XenForo/ControllerResponse/View.php
  114. library/XenForo/ControllerResponse/Abstract.php
  115. library/VietXf/MoreThread/Model/MoreThread.php
  116. library/VfcodersHH/Model/Permission.php
  117. library/VfcodersHH/Helper/Parse.php
  118. library/VfcodersHH/Helper/Strip.php
  119. library/VfcodersHH/Helper/Tags.php
  120. library/XenForo/Template/Public.php
  121. library/XenForo/Template/Abstract.php
  122. library/Andy/SimilarThreads/Model.php
  123. library/XenForo/NodeHandler/Category.php
  124. library/XenForo/NodeHandler/Abstract.php
  125. library/XenForo/NodeHandler/Forum.php
  126. library/XenForo/NodeHandler/LinkForum.php
  127. library/Brivium/Tellurium/NodeHandler/LinkForum.php
  128. library/XenForo/Model/Category.php
  129. library/XenForo/Model/LinkForum.php
  130. library/XenForo/Db.php
  131. library/XenForo/Helper/Cookie.php
  132. library/XenForo/ViewRenderer/HtmlPublic.php
  133. library/XenForo/ViewRenderer/Abstract.php
  134. library/WidgetFramework/Core.php
  135. library/XenForo/Model/Moderator.php
  136. library/WidgetFramework/Model/Widget.php
  137. library/WidgetFramework/Helper/Sort.php
  138. library/WidgetFramework/WidgetRenderer.php
  139. library/XenForo/ViewPublic/Thread/View.php
  140. library/XenForo/ViewPublic/Base.php
  141. library/XenForo/View.php
  142. library/WidgetFramework/XenForo/View1.php
  143. library/Brivium/AutoLink/ViewPublic/Thread/View.php
  144. library/Brivium/DoFollowforUsergroup/ViewPublic/Thread/View.php
  145. library/XenForo/BbCode/Parser.php
  146. library/XenForo/BbCode/Formatter/Base.php
  147. library/Starvnnet/UrlToImg/Listener.php
  148. library/Brivium/DoFollowforUsergroup/BbCode/Formatter/Base.php
  149. library/Tinhte/AttachImageOptimization/BbCode/Formatter/Base.php
  150. library/WidgetFramework/XenForo/BbCode/Formatter/Base.php
  151. library/Starvnnet/UrlToImg/BBcode.php
  152. library/VfcodersHH/BbCode/Formatter/Base.php
  153. library/XenForo/ViewPublic/Helper/Message.php
  154. library/XenForo/BbCode/TextWrapper.php
  155. library/Brivium/AutoLink/Model/AutoLink.php
  156. library/Brivium/AutoLink/ViewPublic/Helper/AutoLink.php
  157. library/VietXfAdvStats/Model/GetUserGroup.php
  158. library/WidgetFramework/WidgetRenderer/Threads.php
  159. library/WidgetFramework/Model/Cache.php
  160. library/WidgetFramework/WidgetRenderer/OnlineUsers.php
  161. library/Brivium/AutoLink/EventListeners/Listener.php
  162. library/Siropu/CustomTabs/Listener.php
  163. library/XenForo/Route/Prefix/Members.php
  164. library/Siropu/CustomTabs/Model.php
  165. library/Siropu/CustomTabs/Helper.php
  166. library/XenForo/Helper/Criteria.php
  167. library/WidgetFramework/Template/Extended.php
  168. library/XenForo/Template/FileHandler.php
  169. library/XenForo/Helper/File.php
  170. internal_data/templates/S.2,L.2,thread_view.php
  171. library/VfcodersHH/Listener/Hook.php
  172. library/XenForo/Route/Prefix/Posts.php
  173. library/XenForo/Model/Avatar.php
  174. internal_data/templates/S.2,L.2,dark_postrating_message_user_info.php
  175. internal_data/templates/S.2,L.2,MoreThread_main.php
  176. internal_data/templates/S.2,L.2,dark_postrating.php
  177. internal_data/templates/S.2,L.2,BRETI_message_below.php
  178. internal_data/templates/S.2,L.2,vfchh_js.php
  179. internal_data/templates/S.2,L.2,wf_widget_threads.php
  180. library/WidgetFramework/Helper/String.php
  181. library/Zend/Exception.php
  182. library/XenForo/Model/Session.php
  183. library/Dark/PostRating/Model/Session.php
  184. internal_data/templates/S.2,L.2,wf_widget_online_users.php
  185. library/WidgetFramework/WidgetRenderer/Empty.php
  186. internal_data/templates/S.2,L.2,wf_widget_wrapper.php
  187. library/XenForo/Debug.php
  188. internal_data/templates/S.2,L.2,PAGE_CONTAINER.php
  189. library/VietXfAdvStats/Option.php
  190. library/XenForo/ViewRenderer/Json.php