Page Time: 0.0522s

Memory: 4.0120 MB (Peak: 5.4087 MB)

Queries (10, time: 0.0145s, 27.7%)

  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.007231
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_data_registryrangePRIMARYPRIMARY27 26Using index condition
  2. SELECT cache_value
    FROM xf_permission_combination
    WHERE permission_combination_id = ?
    Params: 1
    Run Time: 0.000202
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_combinationconstPRIMARYPRIMARY4const1 
  3. 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: 85967
    Run Time: 0.000718
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEthreadconstPRIMARYPRIMARY4const1 
    SIMPLEuserconstPRIMARYPRIMARY4const1 
  4. 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.000828
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEnodeconstPRIMARYPRIMARY4const1 
    SIMPLEforumconstPRIMARYPRIMARY4const1 
    SIMPLEpermissionconstPRIMARYPRIMARY35const,const,const1 
  5. SELECT data_value
    FROM xf_data_registry
    WHERE data_key = ?
    Params: dark_postrating_ratings
    Run Time: 0.000152
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_data_registryconstPRIMARYPRIMARY27const1 
  6. SELECT post.*
    	,
    		user.*, IF(user.username IS NULL, post.username, user.username) AS username,
    		user_profile.*,
    		user_privacy.*,
    		0 AS like_date,
    pr2.rating, 
    	pr.*, post.post_id
    FROM xf_post AS post
    
    		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 dark_postrating pr2 ON (post.post_id = pr2.post_id and pr2.user_id = 0)
    LEFT JOIN (
    select 
    pivot_pr.post_id
    , sum(case when pivot_pr.rating = 1 then 1 else 0 end) dark_postrating_1_count
    , sum(case when pivot_pr.rating = 14 then 1 else 0 end) dark_postrating_14_count
    , sum(case when pivot_pr.rating = 2 then 1 else 0 end) dark_postrating_2_count
    , sum(case when pivot_pr.rating = 3 then 1 else 0 end) dark_postrating_3_count
    , sum(case when pivot_pr.rating = 4 then 1 else 0 end) dark_postrating_4_count
    , sum(case when pivot_pr.rating = 5 then 1 else 0 end) dark_postrating_5_count
    , sum(case when pivot_pr.rating = 6 then 1 else 0 end) dark_postrating_6_count
    , sum(case when pivot_pr.rating = 7 then 1 else 0 end) dark_postrating_7_count
    , sum(case when pivot_pr.rating = 8 then 1 else 0 end) dark_postrating_8_count
    , sum(case when pivot_pr.rating = 9 then 1 else 0 end) dark_postrating_9_count
    , sum(case when pivot_pr.rating = 10 then 1 else 0 end) dark_postrating_10_count
    , sum(case when pivot_pr.rating = 11 then 1 else 0 end) dark_postrating_11_count
    , sum(case when pivot_pr.rating = 12 then 1 else 0 end) dark_postrating_12_count
    
    		
    from dark_postrating pivot_pr 
    use index (`post_id_rating`)
    left join xf_post pivot_post on (pivot_pr.post_id = pivot_post.post_id)
    where pivot_post.thread_id = 85967
    group by pivot_pr.post_id
    ) pr on (pr.post_id = post.post_id)
    
    
    WHERE post.thread_id = ?
    	 AND (post.position >= 0 AND post.position < 10) 
    	AND (post.message_state IN ('visible'))
    ORDER BY post.position ASC, post.post_date ASC
    Params: 85967
    Run Time: 0.003936
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    PRIMARYpostrangethread_id_post_date,thread_id_positionthread_id_position8 9Using index condition; Using where; Using filesort
    PRIMARYusereq_refPRIMARYPRIMARY4gotitans.post.user_id1 
    PRIMARYuser_profileeq_refPRIMARYPRIMARY4gotitans.post.user_id1 
    PRIMARYuser_privacyeq_refPRIMARYPRIMARY4gotitans.post.user_id1 
    PRIMARYpr2eq_refpost_id_user_id,post_id_rating,user_id_ratingpost_id_user_id8gotitans.post.post_id,const1 
    PRIMARY<derived2>refkey0key05gotitans.post.post_id7 
    DERIVEDpivot_postrefPRIMARY,thread_id_post_date,thread_id_positionthread_id_post_date4const38Using temporary; Using filesort
    DERIVEDpivot_prrefpost_id_ratingpost_id_rating4gotitans.pivot_post.post_id2Using index
  7. SELECT attachment.*,
    	data.filename, data.file_size, data.file_hash, data.file_path, data.width, data.height, data.thumbnail_width, data.thumbnail_height
    FROM xf_attachment AS attachment
    INNER JOIN xf_attachment_data AS data ON
    	(data.data_id = attachment.data_id)
    WHERE attachment.content_type = ?
    	AND attachment.content_id IN (971836)
    ORDER BY attachment.content_id, attachment.attach_date
    Params: post
    Run Time: 0.000714
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEattachmentrefcontent_type_id_datecontent_type_id_date31const,const2Using index condition; Using where
    SIMPLEdataeq_refPRIMARYPRIMARY4gotitans.attachment.data_id1 
  8. INSERT DELAYED INTO xf_thread_view
    	(thread_id)
    VALUES
    	(?)
    Params: 85967
    Run Time: 0.000195
  9. INSERT INTO `xf_session` (`session_id`, `session_data`, `expiry_date`) VALUES (?, ?, ?)
    Params: a3a4cbc602ee23f0bbcebb85923f6df7, , 1516408495
    Run Time: 0.000268
  10. 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, , , XenForo_ControllerPublic_Thread, Index, valid, thread_id=85967, 1516404895,
    Run Time: 0.000211

Included Files (98, XenForo Classes: 63)

  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/XenForo/Router.php
  33. library/XenForo/Route/Filter.php
  34. library/XenForo/Route/Interface.php
  35. library/XenForo/Route/ResponseSuffix.php
  36. library/XenForo/Route/Prefix.php
  37. library/XenForo/Route/Prefix/Threads.php
  38. library/XenForo/RouteMatch.php
  39. library/XenForo/ControllerPublic/Thread.php
  40. library/XenForo/ControllerPublic/Abstract.php
  41. library/XenForo/Controller.php
  42. library/Sedo/MobileStyleSelector/Listener/ControllerPublic.php
  43. library/Dark/PostRating/EventListener.php
  44. library/XenForo/Input.php
  45. library/XenForo/Session.php
  46. library/XenForo/Helper/Ip.php
  47. library/XenForo/Visitor.php
  48. library/XenForo/Model/User.php
  49. library/Dark/PostRating/Model/User.php
  50. library/XenForo/Permission.php
  51. library/XenForo/Helper/Php.php
  52. library/XenForo/Phrase.php
  53. library/XenForo/Locale.php
  54. library/Sedo/MobileStyleSelector/Listener/Visitor.php
  55. library/Sedo/MobileStyleSelector/Listener/ControllerPreDispatch.php
  56. library/XenForo/ControllerHelper/ForumThreadPost.php
  57. library/XenForo/ControllerHelper/Abstract.php
  58. library/XenForo/Model/Thread.php
  59. library/Dark/PostRating/Model/Thread.php
  60. library/XenForo/Model/Forum.php
  61. library/XenForo/Helper/String.php
  62. library/XenForo/Helper/Discussion.php
  63. library/XenForo/Model/Post.php
  64. library/Dark/PostRating/Model/Post.php
  65. library/Dark/PostRating/Model.php
  66. library/XenForo/Model/Attachment.php
  67. library/XenForo/Route/Prefix/Attachments.php
  68. library/XenForo/Model/Node.php
  69. library/XenForo/Route/Prefix/Categories.php
  70. library/XenForo/Route/Prefix/Forums.php
  71. library/XenForo/ControllerResponse/View.php
  72. library/XenForo/ControllerResponse/Abstract.php
  73. library/XenForo/Helper/Cookie.php
  74. library/XenForo/ViewRenderer/HtmlPublic.php
  75. library/XenForo/ViewRenderer/Abstract.php
  76. library/XenForo/Template/Public.php
  77. library/XenForo/Template/Abstract.php
  78. library/XenForo/ViewPublic/Thread/View.php
  79. library/XenForo/ViewPublic/Base.php
  80. library/XenForo/View.php
  81. library/XenForo/BbCode/Parser.php
  82. library/XenForo/BbCode/Formatter/Base.php
  83. library/XenForo/ViewPublic/Helper/Message.php
  84. library/XenForo/BbCode/TextWrapper.php
  85. library/XenForo/Route/Prefix/Members.php
  86. library/XenForo/Template/FileHandler.php
  87. library/XenForo/Helper/File.php
  88. internal_data/templates/S.6,L.1,thread_view.php
  89. internal_data/templates/S.6,L.1,page_nav.php
  90. library/XenForo/Route/Prefix/Posts.php
  91. library/XenForo/Model/Avatar.php
  92. internal_data/templates/S.6,L.1,dark_postrating_message_user_info.php
  93. internal_data/templates/S.6,L.1,dark_postrating.php
  94. internal_data/templates/S.6,L.1,bb_code_tag_quote.php
  95. internal_data/templates/S.6,L.1,bb_code_tag_attach.php
  96. library/XenForo/Debug.php
  97. internal_data/templates/S.6,L.1,PAGE_CONTAINER.php
  98. library/XenForo/ViewRenderer/Json.php