Page Time: 0.0417s

Memory: 4.7335 MB (Peak: 6.0812 MB)

Queries (10, time: 0.0075s, 18.0%)

  1. SELECT cache_value
    FROM xf_permission_combination
    WHERE permission_combination_id = ?
    Params: 1
    Run Time: 0.000144
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_combinationconstPRIMARYPRIMARY4const1 
  2. 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: 17425
    Run Time: 0.000705
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEthreadconstPRIMARYPRIMARY4const1 
    SIMPLEuserconstPRIMARYPRIMARY4const1 
  3. 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: 4
    Run Time: 0.000258
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEforumconstPRIMARYPRIMARY4const1 
    SIMPLEnodeconstPRIMARYPRIMARY4const1 
    SIMPLEpermissionconstPRIMARYPRIMARY35const,const,const1 
  4. SELECT post.*
    	,
    		user.*, IF(user.username IS NULL, post.username, user.username) AS username,
    		user_profile.*,
    		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
    	,
    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_session_activity AS session_activity ON
    			(post.user_id > 0 AND session_activity.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
    , sum(case when pivot_pr.rating = 13 then 1 else 0 end) dark_postrating_13_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 = 17425
    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 < 30) 
    	AND (post.message_state IN ('visible'))
    ORDER BY post.position ASC, post.post_date ASC
    Params: 17425
    Run Time: 0.004480
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    PRIMARYpostrangethread_id_post_date,thread_id_positionthread_id_position8 29Using where; Using temporary; Using filesort
    PRIMARYusereq_refPRIMARYPRIMARY4bolttalk_maindb.post.user_id1 
    PRIMARYuser_profileeq_refPRIMARYPRIMARY4bolttalk_maindb.post.user_id1 
    PRIMARYsession_activityALLPRIMARY   152 
    PRIMARYpr2eq_refpost_id_user_id,post_id_rating,user_id_ratingpost_id_user_id8bolttalk_maindb.post.post_id,const1 
    PRIMARY<derived5>ALL    3 
    DERIVEDpivot_postrefPRIMARY,thread_id_post_date,thread_id_positionthread_id_position4 62Using where; Using index; Using temporary; Using filesort
    DERIVEDpivot_prrefpost_id_ratingpost_id_rating4bolttalk_maindb.pivot_post.post_id1Using index
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4bolttalk_maindb.post.user_id3Using where
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4bolttalk_maindb.post.user_id3Using where
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4bolttalk_maindb.post.user_id3Using where
  5. SELECT attachment.*,
    	data.filename, data.file_size, data.file_hash, 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 (579133, 579134, 579135, 579136, 579137, 579138, 579139, 579141, 579142, 579143, 579144, 579145, 579146, 579147, 579148, 579149, 579150, 579151, 579152, 579153, 579154, 579155, 579156, 579157, 579159, 579160, 579161, 579162)
    ORDER BY attachment.content_id, attachment.attach_date
    Params: post
    Run Time: 0.000817
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEattachmentrangecontent_type_id_datecontent_type_id_date31 84Using where
    SIMPLEdataeq_refPRIMARYPRIMARY4bolttalk_maindb.attachment.data_id1 
  6. INSERT DELAYED INTO xf_thread_view
    	(thread_id)
    VALUES
    	(?)
    Params: 17425
    Run Time: 0.000157
  7. UPDATE xf_session_activity
    SET xf_session_activity.view_count = xf_session_activity.view_count + 1
    WHERE ip = ? AND user_id = 0
    Params: 6Ƈ
    Run Time: 0.000198
  8. SELECT view_count
    FROM xf_session_activity
    WHERE ip = ? AND user_id = 0
    Params: 6Ƈ
    Run Time: 0.000529
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_session_activityALLPRIMARY   152Using where
  9. 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, error, thread_id=17425, 1411120270,
    Run Time: 0.000132
  10. SELECT title, phrase_text
    FROM xf_phrase_compiled
    WHERE language_id = ?
    	AND title IN ('limit_guest_thread_page_view_ask_to_login_or_register', 'Tickets', 'Schedule', 'Draft')
    Params: 1
    Run Time: 0.000094
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_phrase_compiledrangePRIMARYPRIMARY106 4Using where

Included Files (142, XenForo Classes: 56)

  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/Memcached.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/BBM/Listeners/AllInOne.php
  29. library/sonnb/XenGallery/Listener.php
  30. library/bdTagMe/Listener.php
  31. library/bdTagMe/Helper/Template.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/EWRporta/Listener/Route.php
  39. library/EWRporta/Route/Thread.php
  40. library/XenForo/RouteMatch.php
  41. library/BBM/Protection/Helper/ContentProtection.php
  42. library/XenForo/ControllerPublic/Thread.php
  43. library/XenForo/ControllerPublic/Abstract.php
  44. library/XenForo/Controller.php
  45. library/MailChimp/Listener.php
  46. library/Nobita/LimitGuestThreadPageView/Listener.php
  47. library/KingK/BbCodeManager/EventListener/BbCode.php
  48. library/ModerateCountry/RegisterListener.php
  49. library/SportsNetwork/Listener.php
  50. library/EWRporta/Listener/Controller.php
  51. library/Dark/PostRating/EventListener.php
  52. library/KingK/BbCodeManager/BbCodeManager.php
  53. library/AddOnInstaller/Listener.php
  54. library/Nobita/LimitGuestThreadPageView/ControllerPublic/Thread.php
  55. library/SportsNetwork/ControllerPublic/Thread.php
  56. library/EWRporta/ControllerPublic/Thread.php
  57. library/sonnb/XenGallery/XenForo/ControllerPublic/Thread.php
  58. library/XenForo/Input.php
  59. library/XenForo/Session.php
  60. library/Zend/Db.php
  61. library/Zend/Db/Adapter/Mysqli.php
  62. library/Zend/Db/Adapter/Abstract.php
  63. library/Zend/Db/Select.php
  64. library/Zend/Db/Expr.php
  65. library/Zend/Db/Profiler.php
  66. library/Zend/Db/Statement/Mysqli.php
  67. library/Zend/Db/Statement.php
  68. library/Zend/Db/Statement/Interface.php
  69. library/XenForo/Helper/Ip.php
  70. library/XenForo/Visitor.php
  71. library/XenForo/Model/User.php
  72. library/Waindigo/JoinUserGroup/Listener/LoadClass.php
  73. library/Waindigo/Listener/LoadClass.php
  74. library/Waindigo/Listener/LoadClass/20140808.php
  75. library/EWRporta/Listener/Model.php
  76. library/BBM/Protection/Listener/Models.php
  77. library/Dark/TaigaChat/EventListener/Listener.php
  78. library/sonnbThreadMassActions/Listener.php
  79. library/Waindigo/JoinUserGroup/Extend/XenForo/Model/User.php
  80. library/Dark/PostRating/Model/User.php
  81. library/sonnb/XenGallery/XenForo/Model/User.php
  82. library/bdTagMe/XenForo/Model/User.php
  83. library/Zend/Db/Profiler/Query.php
  84. library/XenForo/Permission.php
  85. library/XenForo/Phrase.php
  86. library/XenForo/Locale.php
  87. library/EWRporta/Model/Perms.php
  88. library/Waindigo/JoinUserGroup/Listener/ControllerPreDispatch.php
  89. library/Waindigo/Listener/ControllerPreDispatch.php
  90. library/Waindigo/Listener/ControllerPreDispatch/20140711.php
  91. library/XenForo/Model/Session.php
  92. library/Nobita/LimitGuestThreadPageView/Model/Session.php
  93. library/Dark/PostRating/Model/Session.php
  94. library/Dark/TaigaChat/Model/SessionOverride.php
  95. library/XenForo/ControllerHelper/ForumThreadPost.php
  96. library/XenForo/ControllerHelper/Abstract.php
  97. library/XenForo/Model/Thread.php
  98. library/Nobita/LimitGuestThreadPageView/Model/Thread.php
  99. library/Dark/PostRating/Model/Thread.php
  100. library/sonnbThreadMassActions/Model/Thread.php
  101. library/Dark/PostRating/Model.php
  102. library/XenForo/Model/Forum.php
  103. library/XenForo/Helper/String.php
  104. library/XenForo/Helper/Discussion.php
  105. library/XenForo/Model/Post.php
  106. library/EWRporta/Model/Post.php
  107. library/Dark/PostRating/Model/Post.php
  108. library/sonnbThreadMassActions/Model/Post.php
  109. library/XenForo/Model/Attachment.php
  110. library/EWRporta/Model/Attachment.php
  111. library/XenForo/Route/Prefix/Attachments.php
  112. library/Nobita/LimitGuestThreadPageView/Engine.php
  113. library/XenForo/Model/Node.php
  114. library/XenForo/Route/Prefix/Categories.php
  115. library/XenForo/Route/Prefix/Forums.php
  116. library/XenForo/ControllerResponse/View.php
  117. library/XenForo/ControllerResponse/Abstract.php
  118. library/XenForo/ControllerResponse/Error.php
  119. library/XenForo/Helper/Cookie.php
  120. library/XenForo/ViewRenderer/HtmlPublic.php
  121. library/XenForo/ViewRenderer/Abstract.php
  122. library/XenForo/Template/Public.php
  123. library/XenForo/Template/Abstract.php
  124. library/Waindigo/JoinUserGroup/Listener/TemplateCreate.php
  125. library/Waindigo/Listener/TemplateCreate.php
  126. library/Waindigo/Listener/TemplateCreate/20130522.php
  127. library/XenForo/Route/Prefix/Members.php
  128. library/bdTagMe/XenForo/Route/Prefix/Members.php
  129. library/ExternalPages/Listeners/Navigation.php
  130. library/ExternalPages/Route/Prefix/En.php
  131. library/EWRporta/Listener/NavTabs.php
  132. library/Dark/TaigaChat/EventListener/NavigationTabs.php
  133. library/XenForo/Template/FileHandler.php
  134. library/XenForo/Helper/File.php
  135. internal_data/templates/S.5,L.1,error.php
  136. library/XenForo/Helper/Criteria.php
  137. library/XenForo/Debug.php
  138. internal_data/templates/S.5,L.1,PAGE_CONTAINER.php
  139. library/SeparateStickyAndNormal/Listener.php
  140. library/EWRporta/Listener/Template.php
  141. library/BBM/Listeners/Templates/Public.php
  142. library/XenForo/ViewRenderer/Json.php