Page Time: 0.0463s

Memory: 3.9945 MB (Peak: 5.2342 MB)

Queries (15, time: 0.0047s, 10.1%)

  1. SELECT cache_value
    FROM xf_permission_combination
    WHERE permission_combination_id = ?
    Params: 1
    Run Time: 0.000133
    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: 25714
    Run Time: 0.000340
    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: 17
    Run Time: 0.000143
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEnodeconstPRIMARYPRIMARY4const1 
    SIMPLEforumconstPRIMARYPRIMARY4const1 
    SIMPLEpermissionconstPRIMARYPRIMARY35const,const,const1 
  4. SELECT post.*
    	,
    		user.*, IF(user.username IS NULL, post.username, user.username) AS username,
    		user_profile.*,
    		user_privacy.*,
    		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,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, 
    	pr.*, post.post_id, 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
    
    		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_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 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 = 25714
    group by pivot_pr.post_id
    ) pr on (pr.post_id = post.post_id)
    
    
                    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.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: 25714
    Run Time: 0.002893
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    PRIMARYpostrangethread_id_post_date,thread_id_positionthread_id_position8 12Using index condition; Using where; Using filesort
    PRIMARYusereq_refPRIMARYPRIMARY4foromtb_www.post.user_id1 
    PRIMARYuser_profileeq_refPRIMARYPRIMARY4foromtb_www.post.user_id1 
    PRIMARYuser_privacyeq_refPRIMARYPRIMARY4foromtb_www.post.user_id1 
    PRIMARYsession_activityeq_refPRIMARYPRIMARY22foromtb_www.post.user_id,func1Using where
    PRIMARYpr2eq_refpost_id_user_id,post_id_rating,user_id_ratingpost_id_user_id8foromtb_www.post.post_id,const1 
    PRIMARY<derived5>refkey0key05foromtb_www.post.post_id2 
    PRIMARYratingeq_refPRIMARYPRIMARY4foromtb_www.post.user_id1 
    PRIMARYpermission_combinationeq_refPRIMARYPRIMARY4foromtb_www.user.permission_combination_id1Using where
    DERIVEDpivot_postrefPRIMARY,thread_id_post_date,thread_id_positionthread_id_post_date4const13Using index; Using temporary; Using filesort
    DERIVEDpivot_prrefpost_id_ratingpost_id_rating4foromtb_www.pivot_post.post_id1Using index
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4foromtb_www.post.user_id1Using index condition
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4foromtb_www.post.user_id1Using index condition
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4foromtb_www.post.user_id1Using index condition
  5. INSERT DELAYED INTO xf_thread_view
    	(thread_id)
    VALUES
    	(?)
    Params: 25714
    Run Time: 0.000144
  6.             SELECT field.*
                ,
                        ff.field_id, ff.node_id
                FROM xf_thread_field AS field
                
                        INNER JOIN xf_forum_field AS ff ON
                        (ff.field_id = field.field_id)
                WHERE (ff.node_id IN(17))
                ORDER BY field.materialized_order
    Run Time: 0.000088
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEffrefPRIMARY,field_idPRIMARY4const1Using index; Using temporary; Using filesort
    SIMPLEfieldeq_refPRIMARYPRIMARY194foromtb_www.ff.field_id1 
  7.             SELECT field.*
                ,
                        ff.field_id, ff.node_id
                FROM xf_thread_field AS field
                
                        INNER JOIN xf_forum_field AS ff ON
                        (ff.field_id = field.field_id)
                WHERE (ff.node_id IN(17))
                ORDER BY field.materialized_order
    Run Time: 0.000073
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEffrefPRIMARY,field_idPRIMARY4const1Using index; Using temporary; Using filesort
    SIMPLEfieldeq_refPRIMARYPRIMARY194foromtb_www.ff.field_id1 
  8. INSERT INTO `xf_session` (`session_id`, `session_data`, `expiry_date`) VALUES (?, ?, ?)
    Params: 7540eae134cd6973101fd6adafdb2827, , 1710834206
    Run Time: 0.000112
  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, , , XenForo_ControllerPublic_Thread, Index, valid, thread_id=25714, 1710830606,
    Run Time: 0.000069
  10. SELECT activity.*, user.username 
    FROM xc_trade_activity AS activity
    LEFT JOIN xf_user AS user ON user.user_id=activity.user_id
    WHERE activity.user_id=?
    ORDER BY activity.dateline DESC
    LIMIT 0, ?
    Params: 0, 10
    Run Time: 0.000062
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEactivityrefuser_id_datelineuser_id_dateline4const1Using where
    SIMPLEusereq_refPRIMARYPRIMARY4foromtb_www.activity.user_id1 
  11. SELECT title, template_compiled
    FROM xf_template_compiled
    WHERE title IN ('page_nav', 'bb_code_tag_code', 'bb_code_tag_php', 'bb_code_tag_html', 'bb_code_tag_quote', 'bb_code_tag_attach', 'bb_code_tag_spoiler', '_header_node.17', '_footer_node.17', '_header_post_node.17', '_footer_post_node.17', 'waindigo_quick_reply_prepend_customfields', 'waindigo_header_node_customfields', 'thread_view', 'nflj_showcase_tab_links', 'xcxt_navtabs', 'waindigo_you_are_using_as_user_loginasuser', 'waindigo_moderator_bar_loginasuser', 'dark_postrating', 'dark_postrating_member', 'dark_postrating_member_totals', 'message_user_info_extra', 'user_criteria_content', 'thread_list_item_icon_key', 'dark_postrating_member_notable_tabs', 'dark_postrating_account_wrapper', 'dark_postrating_navigation_visitor_tab', 'dark_postrating_visitor_panel', 'dark_postrating_member_card', 'dark_postrating_member_info', 'dark_postrating_message_user_info', 'xcfw_copyright', 'xcxt_headinclude', 'xcxt_trading_preferences_link_list', 'xcxt_visitor_panel_addon', 'PAGE_CONTAINER')
    	AND style_id = ?
    	AND language_id = ?
    Params: 1, 2
    Run Time: 0.000343
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_template_compiledrangePRIMARYPRIMARY60 36Using where
  12. SELECT title, phrase_text
    FROM xf_phrase_compiled
    WHERE language_id = ?
    	AND title IN ('xcxt_trade')
    Params: 2
    Run Time: 0.000049
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_phrase_compiledconstPRIMARYPRIMARY106const,const1 
  13. SELECT title, template_compiled
    FROM xf_template_compiled
    WHERE title IN ('waindigo_thread_view_tools_links_customfields')
    	AND style_id = ?
    	AND language_id = ?
    Params: 1, 2
    Run Time: 0.000062
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_template_compiledconstPRIMARYPRIMARY60const,const,const1 
  14. SELECT *
    FROM xf_notification
    ORDER BY notification_id
    Run Time: 0.000093
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_notificationindex PRIMARY4 1 
  15. SELECT title, template_compiled
    FROM xf_template_compiled
    WHERE title IN ('GritterNotifications')
    	AND style_id = ?
    	AND language_id = ?
    Params: 1, 2
    Run Time: 0.000060
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_template_compiledconstPRIMARYPRIMARY60const,const,const1 

Included Files (169, XenForo Classes: 61)

  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/Threads.php
  47. library/XenForo/RouteMatch.php
  48. library/XenForo/ControllerPublic/Thread.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/DigitalPointAdPositioning/Listener/LoadClassControllerPublic/Thread.php
  57. library/Waindigo/CustomFields/Extend/XenForo/ControllerPublic/Thread.php
  58. library/UserEss/ControllerPublic/Thread.php
  59. library/Bookmarks/ControllerPublic/Thread.php
  60. library/DigitalPointAdPositioning/ControllerPublic/Thread.php
  61. library/XenForo/Input.php
  62. library/XenForo/Session.php
  63. library/Zend/Db.php
  64. library/Zend/Db/Adapter/Mysqli.php
  65. library/Zend/Db/Adapter/Abstract.php
  66. library/Zend/Db/Select.php
  67. library/Zend/Db/Expr.php
  68. library/Zend/Db/Profiler.php
  69. library/Zend/Db/Statement/Mysqli.php
  70. library/Zend/Db/Statement.php
  71. library/Zend/Db/Statement/Interface.php
  72. library/XenForo/Helper/Ip.php
  73. library/XenForo/Visitor.php
  74. library/XenForo/Model/User.php
  75. library/Waindigo/LoginAsUser/Listener/LoadClass.php
  76. library/Waindigo/LoginAsUser/Extend/XenForo/Model/User.php
  77. library/Dark/PostRating/Model/User.php
  78. library/XenCentral/Trade/Model/XfUser.php
  79. library/Zend/Db/Profiler/Query.php
  80. library/XenForo/Permission.php
  81. library/XenForo/Helper/Php.php
  82. library/XenForo/Phrase.php
  83. library/XenForo/Locale.php
  84. library/Waindigo/LoginAsUser/Listener/VisitorSetup.php
  85. library/Waindigo/Listener/VisitorSetup.php
  86. library/Waindigo/Listener/VisitorSetup/20130615.php
  87. library/Waindigo/LoginAsUser/Extend/XenForo/Visitor.php
  88. library/Waindigo/InstallUpgrade/Listener/ControllerPreDispatch.php
  89. library/DigitalPointAdPositioning/Listener/ControllerPreDispatch.php
  90. library/XenForo/ControllerHelper/ForumThreadPost.php
  91. library/XenForo/ControllerHelper/Abstract.php
  92. library/XenForo/Model/Thread.php
  93. library/Waindigo/LastPostAvatar/Listener/LoadClass.php
  94. library/Waindigo/LastPostAvatar/Extend/XenForo/Model/Thread.php
  95. library/Waindigo/CustomFields/Extend/XenForo/Model/Thread.php
  96. library/UserEss/Model/Thread.php
  97. library/Dark/PostRating/Model/Thread.php
  98. library/Bookmarks/Model/Thread.php
  99. library/Dark/PostRating/Model.php
  100. library/XenForo/Model/Forum.php
  101. library/UserEss/Model/Forum.php
  102. library/XenForo/Helper/String.php
  103. library/XenForo/Model/Post.php
  104. library/UserEss/Model/Post.php
  105. library/Dark/PostRating/Model/Post.php
  106. library/XenCentral/Trade/Model/Post.php
  107. library/Bookmarks/Model/Post.php
  108. library/XenForo/Model/Attachment.php
  109. library/XenForo/Model/Node.php
  110. library/Waindigo/LastPostAvatar/Extend/XenForo/Model/Node.php
  111. library/Tapatalk/Model/Node.php
  112. library/XenForo/Route/Prefix/Categories.php
  113. library/XenForo/Route/Prefix/Forums.php
  114. library/XenForo/ControllerResponse/View.php
  115. library/XenForo/ControllerResponse/Abstract.php
  116. library/Waindigo/CustomFields/Model/ThreadField.php
  117. library/XenForo/Helper/Cookie.php
  118. library/DigitalPointAdPositioning/Listener/ControllerPostDispatch.php
  119. library/Tapatalk/Listener/ControllerPostDispatch.php
  120. library/NFLJ/Showcase/Listener/Template.php
  121. library/XenForo/ViewRenderer/HtmlPublic.php
  122. library/XenForo/ViewRenderer/Abstract.php
  123. library/XenForo/Template/Public.php
  124. library/XenForo/Template/Abstract.php
  125. library/XenCentral/Framework/Navigation/Admin.php
  126. library/XenForo/ViewPublic/Thread/View.php
  127. library/XenForo/ViewPublic/Base.php
  128. library/XenForo/View.php
  129. library/DigitalPointAdPositioning/Listener/LoadClassViewPublic/Thread.php
  130. library/Waindigo/CustomFields/Extend/XenForo/ViewPublic/Thread/View.php
  131. library/DigitalPointAdPositioning/ViewPublic/Thread/View.php
  132. library/XenForo/BbCode/Parser.php
  133. library/XenForo/BbCode/Formatter/Base.php
  134. library/XenForo/ViewPublic/Helper/Message.php
  135. library/XenForo/BbCode/TextWrapper.php
  136. library/UserEss/Listener/Hook.php
  137. library/Waindigo/LoginAsUser/Listener/TemplateCreate.php
  138. library/Waindigo/Listener/TemplateCreate.php
  139. library/Waindigo/Listener/TemplateCreate/20130522.php
  140. library/Waindigo/CustomFields/Listener/TemplateCreate.php
  141. library/XenCentral/Trade/Permissions.php
  142. library/Bookmarks/Listener/Hook.php
  143. library/XenForo/Route/Prefix/Members.php
  144. library/NFLJ/Showcase/Model/Item.php
  145. library/XenCentral/Trade/Model/Activity.php
  146. library/XenCentral/Trade/Route/PrefixPublic/Main.php
  147. library/Bookmarks/Listener/NavigationTabs.php
  148. library/Tapatalk/EventListener/Hook.php
  149. library/Waindigo/LoginAsUser/Listener/TemplateHook.php
  150. library/Waindigo/Listener/TemplateHook.php
  151. library/Waindigo/Listener/TemplateHook/20141020.php
  152. library/Waindigo/Listener/Template.php
  153. library/Waindigo/Listener/Template/20141020.php
  154. library/Waindigo/CustomFields/Listener/TemplateHook.php
  155. library/Waindigo/CustomFields/Listener/TemplatePostRender.php
  156. library/Waindigo/Listener/TemplatePostRender.php
  157. library/Waindigo/Listener/TemplatePostRender/20140711.php
  158. library/Tapatalk/Listener/TemplatePostRender.php
  159. library/XenForo/Route/Prefix/Posts.php
  160. library/XenForo/Model/Avatar.php
  161. library/DigitalPointAdPositioning/Callback/AdBelowPost.php
  162. library/XenForo/ViewPublic/Helper/User.php
  163. library/XenForo/Helper/Criteria.php
  164. library/XenForo/Debug.php
  165. mobiquo/smartbanner/head.inc.php
  166. library/GritterNotifications/Model/Notification.php
  167. library/XenCentral/Framework/Model/Cache.php
  168. library/XenForo/ViewRenderer/Json.php
  169. library/Vinavb/CustomNodeIcon/Icon.php