Page Time: 0.0601s

Memory: 6.5315 MB (Peak: 6.9461 MB)

Queries (2, time: 0.0034s, 5.6%)

  1. SELECT cache_value
    FROM xf_permission_combination
    WHERE permission_combination_id = ?
    Params: 1
    Run Time: 0.000307
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_combinationconstPRIMARYPRIMARY4const1 
  2. SELECT user.*
    	,
    		user_profile.*,
    		user_option.*,
    		user_privacy.*,
    		permission_combination.cache_value AS global_permission_cache,
    		IF (session_activity.view_date IS NULL, user.last_activity, session_activity.view_date) AS effective_last_activity,
    		session_activity.view_date, session_activity.controller_name, session_activity.controller_action, session_activity.params, session_activity.ip,
    		0 AS following_0
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (1,2,4,6,8)) 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,2,4,6,8)), 0)) as positive_rating_count_incl_likes
    
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (14,12,13)) as negative_rating_count
    
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (3)) 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
    
    		LEFT JOIN xf_user_profile AS user_profile ON
    			(user_profile.user_id = user.user_id)
    		LEFT JOIN xf_user_option AS user_option ON
    			(user_option.user_id = user.user_id)
    		LEFT JOIN xf_user_privacy AS user_privacy ON
    			(user_privacy.user_id = user.user_id)
    		LEFT JOIN xf_permission_combination AS permission_combination ON
    			(permission_combination.permission_combination_id = user.permission_combination_id)
    		LEFT JOIN xf_session_activity AS session_activity ON
    			(session_activity.user_id = user.user_id AND session_activity.unique_key = user.user_id)
    WHERE user.user_id = ?
    Params: 1413
    Run Time: 0.003048
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    PRIMARYuserconstPRIMARYPRIMARY4const1 
    PRIMARYuser_profileconstPRIMARYPRIMARY4const1 
    PRIMARYuser_optionconstPRIMARYPRIMARY4const1 
    PRIMARYuser_privacyconstPRIMARYPRIMARY4const1 
    PRIMARYpermission_combinationconstPRIMARYPRIMARY4const1 
    PRIMARYsession_activityconstPRIMARY   1Impossible ON condition
    SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4const6 
    SUBQUERY       Impossible WHERE noticed after reading const tables
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 3Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 5Using index condition
    SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 5Using index condition

Included Files (88, XenForo Classes: 43)

  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/Audentio/UIX/Listener/CodeEvent.php
  29. library/CTA/FeaturedThreads/Listener.php
  30. library/XenDevTools/Listener.php
  31. library/Steam/Listener.php
  32. library/WidgetFramework/Listener.php
  33. library/WidgetFramework/Option.php
  34. library/HtmlCustomTitles/Listener.php
  35. library/XenForo/Router.php
  36. library/XenForo/Route/Filter.php
  37. library/XenForo/Route/Interface.php
  38. library/XenForo/Route/ResponseSuffix.php
  39. library/XenForo/Route/Prefix.php
  40. library/WidgetFramework/Route/Filter/PageX.php
  41. library/XenForo/Route/Prefix/Members.php
  42. library/XenForo/RouteMatch.php
  43. library/XenForo/ControllerPublic/Member.php
  44. library/XenForo/ControllerPublic/Abstract.php
  45. library/XenForo/Controller.php
  46. library/Dark/PostRating/EventListener.php
  47. library/Dark/PostRating/ControllerPublic/Member.php
  48. library/CTA/FeaturedThreads/ControllerPublic/Member.php
  49. library/XenForo/Input.php
  50. library/XenForo/Session.php
  51. library/Zend/Db.php
  52. library/Zend/Db/Adapter/Mysqli.php
  53. library/Zend/Db/Adapter/Abstract.php
  54. library/Zend/Db/Select.php
  55. library/Zend/Db/Expr.php
  56. library/Zend/Db/Profiler.php
  57. library/Zend/Db/Statement/Mysqli.php
  58. library/Zend/Db/Statement.php
  59. library/Zend/Db/Statement/Interface.php
  60. library/XenForo/Helper/Ip.php
  61. library/XenForo/Visitor.php
  62. library/XenForo/Model/User.php
  63. library/Audentio/UIX/Model/User.php
  64. library/Dark/PostRating/Model/User.php
  65. library/WidgetFramework/XenForo/Model/User.php
  66. library/CTA/FeaturedThreads/Model/User.php
  67. library/Zend/Db/Profiler/Query.php
  68. library/XenForo/Permission.php
  69. library/XenForo/Phrase.php
  70. library/XenForo/Locale.php
  71. library/XenForo/ControllerResponse/Reroute.php
  72. library/XenForo/ControllerResponse/Abstract.php
  73. library/XenForo/ControllerHelper/UserProfile.php
  74. library/XenForo/ControllerHelper/Abstract.php
  75. library/Dark/PostRating/Model.php
  76. library/XenForo/Model/UserProfile.php
  77. library/XenForo/ControllerResponse/Redirect.php
  78. library/XenForo/ControllerResponse/Exception.php
  79. library/XenForo/Helper/Cookie.php
  80. library/XenForo/ViewRenderer/HtmlPublic.php
  81. library/XenForo/ViewRenderer/Abstract.php
  82. library/XenForo/Template/Public.php
  83. library/XenForo/Template/Abstract.php
  84. library/WidgetFramework/Core.php
  85. library/XenForo/Model/Moderator.php
  86. library/WidgetFramework/Model/Widget.php
  87. library/WidgetFramework/Helper/Sort.php
  88. library/XenForo/Debug.php