Page Time: 0.0409s

Memory: 2.6799 MB (Peak: 2.7041 MB)

Queries (6, time: 0.0295s, 72.2%)

  1. SELECT cache_value
    FROM xf_permission_combination
    WHERE permission_combination_id = ?
    Params: 1
    Run Time: 0.005880
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_combinationconstPRIMARYPRIMARY4const1 
  2. SELECT user.*
    	
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (1,2,4,5,7,8,10)) as positive_rating_count
    
    		, ((select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (1,2,4,5,7,8,10)) + like_count) as positive_rating_count_incl_likes
    
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (14,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,6,9)) as neutral_rating_count
    
    ,(select sum(count_received) from dark_postrating_count where user_id = user.user_id) as total_rating_count
    , rating.fb_percent, rating.fb_positive, xc_trade_preference.*
    FROM xf_user AS user
    
    LEFT JOIN xc_trade_user AS rating ON rating.user_id=user.user_id
    LEFT JOIN xc_trade_preference AS xc_trade_preference ON xc_trade_preference.pr_user_id=user.user_id
    
    WHERE user.user_id = ?
    Params: 35371
    Run Time: 0.007105
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    PRIMARYuserconstPRIMARYPRIMARY4const1 
    PRIMARYratingconstPRIMARYPRIMARY4const1 
    PRIMARYxc_trade_preferenceconstPRIMARYPRIMARY4const0unique row not found
    SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4const3 
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 3Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 4Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 7Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 7Using index condition
  3. SELECT search_index.content_type, search_index.content_id
    FROM xf_search_index AS search_index
    WHERE search_index.user_id = ?
    	
    ORDER BY search_index.item_date DESC
     LIMIT 200
    Params: 35371
    Run Time: 0.004573
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEsearch_indexrefuser_id_item_dateuser_id_item_date4const1Using where
  4. 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, (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 1) as dark_postrating_1_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 14) as dark_postrating_14_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 2) as dark_postrating_2_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 3) as dark_postrating_3_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 4) as dark_postrating_4_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 5) as dark_postrating_5_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 6) as dark_postrating_6_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 7) as dark_postrating_7_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 8) as dark_postrating_8_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 9) as dark_postrating_9_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 10) as dark_postrating_10_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 11) as dark_postrating_11_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 12) as dark_postrating_12_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 13) as dark_postrating_13_count
    
    		,(select sum(count_received) from dark_postrating_count where user_id = post.user_id and rating in (1,2,4,5,7,8,10)) as positive_rating_count
    	
    		,(select sum(count_received) from dark_postrating_count where user_id = post.user_id and rating in (14,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,6,9)) as neutral_rating_count
    	,
    pr2.rating, rating.fb_percent, rating.fb_positive, rating.fb_positivetotal, rating.fb_negative, rating.fb_neutral,
    		permission_combination.cache_value AS global_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)
    LEFT JOIN dark_postrating pr2 ON (post.post_id = pr2.post_id and pr2.user_id = 0)
                    LEFT JOIN xc_trade_user AS rating ON rating.user_id=post.user_id
                
    		LEFT JOIN xf_permission_combination AS permission_combination ON
    			(permission_combination.permission_combination_id = user.permission_combination_id)
    WHERE post.post_id IN (27807191)
    Run Time: 0.001104
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    PRIMARYpostconstPRIMARY,thread_id_post_date,thread_id_positionPRIMARY4const1 
    PRIMARYthreadconstPRIMARY,node_id_last_post_date,node_id_sticky_state_last_postPRIMARY4const1 
    PRIMARYnodeconstPRIMARYPRIMARY4const1 
    PRIMARYuserconstPRIMARYPRIMARY4const1 
    PRIMARYpermissionconstPRIMARYPRIMARY35const,const,const1 
    PRIMARYpr2constpost_id_user_id,post_id_rating,user_id_ratingpost_id_user_id8const,const0unique row not found
    PRIMARYratingconstPRIMARYPRIMARY4const1 
    PRIMARYpermission_combinationconstPRIMARYPRIMARY4const1 
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 3Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 4Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 7Using index condition
    SUBQUERYprrefpost_id_ratingpost_id_rating8const,const1Using index
    SUBQUERYprrefpost_id_ratingpost_id_rating8const,const1Using index
    SUBQUERYprrefpost_id_ratingpost_id_rating8const,const1Using index
    SUBQUERYprrefpost_id_ratingpost_id_rating8const,const1Using index
    SUBQUERYprrefpost_id_ratingpost_id_rating8const,const1Using index
    SUBQUERYprrefpost_id_ratingpost_id_rating8const,const1Using index
    SUBQUERYprrefpost_id_ratingpost_id_rating8const,const1Using index
    SUBQUERYprrefpost_id_ratingpost_id_rating8const,const1Using index
    SUBQUERYprrefpost_id_ratingpost_id_rating8const,const1Using index
    SUBQUERYprrefpost_id_ratingpost_id_rating8const,const1Using index
    SUBQUERYprrefpost_id_ratingpost_id_rating8const,const1Using index
    SUBQUERYprrefpost_id_ratingpost_id_rating8const,const1Using index
    SUBQUERYprrefpost_id_ratingpost_id_rating8const,const1Using index
    SUBQUERYprrefpost_id_ratingpost_id_rating8const,const1Using index
  5. 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",27807191]], 1, user, , {"user_id":35371,"content":false}, date, 0, , [], 0, 1618258153, a208872f5f0ea8c40581714976159663
    Run Time: 0.010727
  6. INSERT INTO `xf_session` (`session_id`, `session_data`, `expiry_date`) VALUES (?, ?, ?)
    Params: 991f36ba7c987b7ebef2583003ff02f4, , 1618261753
    Run Time: 0.000136

Included Files (122, XenForo Classes: 47)

  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/Cache.php
  19. library/Zend/Cache/Backend/File.php
  20. library/Zend/Cache/Backend/ExtendedInterface.php
  21. library/Zend/Cache/Backend/Interface.php
  22. library/Zend/Cache/Backend.php
  23. library/Zend/Cache/Core.php
  24. library/XenForo/CodeEvent.php
  25. library/XenForo/Options.php
  26. library/XenForo/Link.php
  27. library/XenForo/Template/Helper/Core.php
  28. library/NFLJ/Showcase/Listener/Proxy.php
  29. library/Waindigo/Listener/InitDependencies.php
  30. library/Waindigo/Listener/InitDependencies/20141020.php
  31. library/Waindigo/Listener/ControllerPreDispatch/20141011.php
  32. library/BannedAvatar/Listener.php
  33. library/XenCentral/Trade/Hooks.php
  34. library/XenCentral/Trade/Model/Options.php
  35. library/XenCentral/Trade/Model/Abstract.php
  36. library/XenCentral/Framework/Hooks.php
  37. library/Tapatalk/Listener/LoadClassModel.php
  38. library/UserEss/Listener/Proxy.php
  39. library/Dark/PostRating/EventListener.php
  40. library/Bookmarks/Listener/Proxy.php
  41. library/XenForo/Router.php
  42. library/XenForo/Route/Filter.php
  43. library/XenForo/Route/Interface.php
  44. library/XenForo/Route/ResponseSuffix.php
  45. library/XenForo/Route/Prefix.php
  46. library/XenForo/Route/Prefix/Search.php
  47. library/XenForo/RouteMatch.php
  48. library/XenForo/ControllerPublic/Search.php
  49. library/XenForo/ControllerPublic/Abstract.php
  50. library/XenForo/Controller.php
  51. library/Waindigo/CustomFields/Listener/LoadClass.php
  52. library/Waindigo/Listener/LoadClass.php
  53. library/Waindigo/Listener/LoadClass/20141202.php
  54. library/Vinavb/CustomNodeIcon/Listener.php
  55. library/GritterNotifications/Listener.php
  56. library/XenES/Listener.php
  57. library/Waindigo/CustomFields/Extend/XenForo/ControllerPublic/Search.php
  58. library/XenES/Proxy/ControllerSearch.php
  59. library/XenForo/Input.php
  60. library/XenForo/Session.php
  61. library/Zend/Db.php
  62. library/Zend/Db/Adapter/Mysqli.php
  63. library/Zend/Db/Adapter/Abstract.php
  64. library/Zend/Db/Select.php
  65. library/Zend/Db/Expr.php
  66. library/Zend/Db/Profiler.php
  67. library/Zend/Db/Statement/Mysqli.php
  68. library/Zend/Db/Statement.php
  69. library/Zend/Db/Statement/Interface.php
  70. library/XenForo/Helper/Ip.php
  71. library/XenForo/Visitor.php
  72. library/XenForo/Model/User.php
  73. library/Waindigo/LoginAsUser/Listener/LoadClass.php
  74. library/Waindigo/LoginAsUser/Extend/XenForo/Model/User.php
  75. library/Dark/PostRating/Model/User.php
  76. library/XenCentral/Trade/Model/XfUser.php
  77. library/Zend/Db/Profiler/Query.php
  78. library/XenForo/Permission.php
  79. library/XenForo/Helper/Php.php
  80. library/XenForo/Phrase.php
  81. library/XenForo/Locale.php
  82. library/Waindigo/LoginAsUser/Listener/VisitorSetup.php
  83. library/Waindigo/Listener/VisitorSetup.php
  84. library/Waindigo/Listener/VisitorSetup/20130615.php
  85. library/Waindigo/LoginAsUser/Extend/XenForo/Visitor.php
  86. library/Waindigo/InstallUpgrade/Listener/ControllerPreDispatch.php
  87. library/DigitalPointAdPositioning/Listener/ControllerPreDispatch.php
  88. library/Dark/PostRating/Model.php
  89. library/XenForo/Model/Search.php
  90. library/Waindigo/CustomFields/Extend/XenForo/Model/Search.php
  91. library/Tapatalk/Model/Search.php
  92. library/XenForo/Search/Searcher.php
  93. library/XenForo/Search/SourceHandler/Abstract.php
  94. library/XenForo/Search/SourceHandler/MySqlFt.php
  95. library/XenForo/Search/DataHandler/Post.php
  96. library/XenForo/Search/DataHandler/Abstract.php
  97. library/Waindigo/CustomFields/Extend/XenForo/Search/DataHandler/Post.php
  98. library/XenForo/Model/Post.php
  99. library/UserEss/Model/Post.php
  100. library/Dark/PostRating/Model/Post.php
  101. library/XenCentral/Trade/Model/Post.php
  102. library/Bookmarks/Model/Post.php
  103. library/XenForo/Model/Thread.php
  104. library/Waindigo/LastPostAvatar/Listener/LoadClass.php
  105. library/Waindigo/LastPostAvatar/Extend/XenForo/Model/Thread.php
  106. library/Waindigo/CustomFields/Extend/XenForo/Model/Thread.php
  107. library/UserEss/Model/Thread.php
  108. library/Dark/PostRating/Model/Thread.php
  109. library/Bookmarks/Model/Thread.php
  110. library/XenForo/Model/Forum.php
  111. library/UserEss/Model/Forum.php
  112. library/XenForo/ControllerResponse/Redirect.php
  113. library/XenForo/ControllerResponse/Abstract.php
  114. library/XenForo/Helper/Cookie.php
  115. library/DigitalPointAdPositioning/Listener/ControllerPostDispatch.php
  116. library/Tapatalk/Listener/ControllerPostDispatch.php
  117. library/XenForo/ViewRenderer/HtmlPublic.php
  118. library/XenForo/ViewRenderer/Abstract.php
  119. library/XenForo/Template/Public.php
  120. library/XenForo/Template/Abstract.php
  121. library/XenCentral/Framework/Navigation/Admin.php
  122. library/XenForo/Debug.php