Page Time: 0.2862s

Memory: 7.7033 MB (Peak: 10.4898 MB)

Queries (20, time: 0.1065s, 37.2%)

  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.000837
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_data_registryrangePRIMARYPRIMARY27 26Using where
  2. SELECT cache_value
    FROM xf_permission_combination
    WHERE permission_combination_id = ?
    Params: 1
    Run Time: 0.000156
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_combinationconstPRIMARYPRIMARY4const1 
  3. SELECT data_value
    FROM xf_data_registry
    WHERE data_key = ?
    Params: dark_postrating_ratings
    Run Time: 0.000172
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_data_registryconstPRIMARYPRIMARY27const1 
  4. 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,5,6,7,8,10)) 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,5,6,7,8,10)), 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,11,12)) as negative_rating_count
    
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (3,9)) 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 = CAST(user.user_id AS BINARY))
    WHERE user.user_id = ?
    Params: 61736
    Run Time: 0.001875
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    PRIMARYuserconstPRIMARYPRIMARY4const1 
    PRIMARYuser_profileconstPRIMARYPRIMARY4const1 
    PRIMARYuser_optionconstPRIMARYPRIMARY4const1 
    PRIMARYuser_privacyconstPRIMARYPRIMARY4const1 
    PRIMARYpermission_combinationconstPRIMARYPRIMARY4const1 
    PRIMARYsession_activityconstPRIMARYPRIMARY22const,const1 
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4const2 
    DEPENDENT SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 2Using where
    DEPENDENT SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 3Using where
    DEPENDENT SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 8Using where
    DEPENDENT SUBQUERYdark_postrating_countrangeuser_id_ratinguser_id_rating8 8Using where
  5. SELECT COUNT(*)
    FROM xf_profile_post AS profile_post
    
    WHERE (profile_post.profile_user_id = 61736) AND (profile_post.message_state IN ('visible'))
    Run Time: 0.080940
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEprofile_postrefprofile_user_id_post_dateprofile_user_id_post_date4const2199Using where
  6. SELECT profile_post.*
    	,
    	posting_user.*,
    	IF(posting_user.username IS NULL, profile_post.username, posting_user.username) AS username,
    	0 AS like_date
    FROM xf_profile_post AS profile_post
    
    	LEFT JOIN xf_user AS posting_user ON
    		(posting_user.user_id = profile_post.user_id)
    WHERE (profile_post.profile_user_id = 61736) AND (profile_post.message_state IN ('visible'))
    ORDER BY profile_post.post_date DESC
     LIMIT 20
    Run Time: 0.001134
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEprofile_postrefprofile_user_id_post_dateprofile_user_id_post_date4const2199Using where
    SIMPLEposting_usereq_refPRIMARYPRIMARY4nma_xen.profile_post.user_id1 
  7. SELECT profile_post_comment.*
    ,
    		user.*,
    		IF(user.username IS NULL, profile_post_comment.username, user.username) AS username,
    			0 AS like_date
    FROM xf_profile_post_comment AS profile_post_comment
    
    		LEFT JOIN xf_user AS user ON
    			(user.user_id = profile_post_comment.user_id)
    WHERE (profile_post_comment.profile_post_comment_id IN(20563, 20564, 20565, 20554, 20566, 20568, 20567, 20551, 20552, 20547, 20548, 20544, 20545, 20546, 20531, 20532, 20535, 20522, 20505, 20506, 20509, 20478, 20481, 20482, 20461, 20467, 20468, 20445, 20448, 20449, 20438, 20439, 20440, 20447, 20450, 20452, 20403, 20404, 20406, 20394)) AND (profile_post_comment.message_state IN ('visible'))
    Run Time: 0.001730
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEprofile_post_commentrangePRIMARYPRIMARY4 40Using where
    SIMPLEusereq_refPRIMARYPRIMARY4nma_xen.profile_post_comment.user_id1 
  8. SELECT user_field.*
    	,
    	field_value.field_value
    FROM xf_user_field AS user_field
    
    	LEFT JOIN xf_user_field_value AS field_value ON
    		(field_value.field_id = user_field.field_id AND field_value.user_id = 61736)
    WHERE (user_field.display_group <> 'preferences' AND user_field.viewable_profile = 1)
    ORDER BY user_field.display_group, user_field.display_order
    Run Time: 0.010820
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEuser_fieldALLdisplay_group_order   6Using where; Using filesort
    SIMPLEfield_valueeq_refPRIMARY,field_idPRIMARY31const,nma_xen.user_field.field_id1 
  9. SELECT
    	user.*,
    	user_profile.*,
    	user_option.*
    	
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (1,2,4,5,6,7,8,10)) 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,5,6,7,8,10)), 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,11,12)) as negative_rating_count
    
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (3,9)) 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_follow AS user_follow
    INNER JOIN xf_user AS user ON
    	(user.user_id = user_follow.follow_user_id)
    INNER JOIN xf_user_profile AS user_profile ON
    	(user_profile.user_id = user.user_id)
    INNER JOIN xf_user_option AS user_option ON
    	(user_option.user_id = user.user_id)
    	
    WHERE user_follow.user_id = ?
    ORDER BY RAND()
     LIMIT 6
    Params: 61736
    Run Time: 0.002086
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    PRIMARYuser_followrefPRIMARY,follow_user_idPRIMARY4const1Using index; Using temporary; Using filesort
    PRIMARYusereq_refPRIMARYPRIMARY4nma_xen.user_follow.follow_user_id1 
    PRIMARYuser_profileeq_refPRIMARYPRIMARY4nma_xen.user_follow.follow_user_id1 
    PRIMARYuser_optioneq_refPRIMARYPRIMARY4nma_xen.user_follow.follow_user_id1 
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4nma_xen.user.user_id1 
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4nma_xen.user.user_id1Using where
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4nma_xen.user.user_id1Using where
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4nma_xen.user.user_id1Using where
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4nma_xen.user.user_id1Using where
  10. SELECT COUNT(*)
    FROM xf_user_follow
    WHERE follow_user_id = ?
    Params: 61736
    Run Time: 0.000370
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_user_followreffollow_user_idfollow_user_id4const10Using index
  11. SELECT user.*,
    	user_profile.*,
    	user_option.*
    	
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (1,2,4,5,6,7,8,10)) 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,5,6,7,8,10)), 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,11,12)) as negative_rating_count
    
    	,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (3,9)) 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_follow AS user_follow
    INNER JOIN xf_user AS user ON
    	(user.user_id = user_follow.user_id)
    INNER JOIN xf_user_profile AS user_profile ON
    	(user_profile.user_id = user.user_id)
    INNER JOIN xf_user_option AS user_option ON
    	(user_option.user_id = user.user_id)
    	
    WHERE user_follow.follow_user_id = ?
    ORDER BY RAND()
     LIMIT 6
    Params: 61736
    Run Time: 0.002962
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    PRIMARYuser_followrefPRIMARY,follow_user_idfollow_user_id4const10Using index; Using temporary; Using filesort
    PRIMARYusereq_refPRIMARYPRIMARY4nma_xen.user_follow.user_id1 
    PRIMARYuser_profileeq_refPRIMARYPRIMARY4nma_xen.user_follow.user_id1 
    PRIMARYuser_optioneq_refPRIMARYPRIMARY4nma_xen.user.user_id1Using where
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4nma_xen.user.user_id1 
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4nma_xen.user.user_id1Using where
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4nma_xen.user.user_id1Using where
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4nma_xen.user.user_id1Using where
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4nma_xen.user.user_id1Using where
  12. SELECT sonnb_xengallery_profile_cover
    FROM sonnb_xengallery_profile_cover
    WHERE user_id = ?
    Params: 61736
    Run Time: 0.000189
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLE       Impossible WHERE noticed after reading const tables
  13. INSERT INTO `xf_session` (`session_id`, `session_data`, `expiry_date`) VALUES (?, ?, ?)
    Params: c23ba4fddba5e8eca194c5989c9665d8, , 1516456624
    Run Time: 0.000177
  14. 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_Member, Member, valid, user_id=61736, 1516453024,
    Run Time: 0.000177
  15. 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', 'sonnb_xengallery_bbcode_photo', 'sonnb_xengallery_bbcode_video', 'sonnb_xengallery_bbcode_album', 'sonnb_xengallery_member_view_info', 'sonnb_xengallery_member_view_tabs_heading', 'sonnb_xengallery_member_view_tabs_content', 'member_view', 'sonnb_xengallery_option_copyright', 'sonnbXG_copyright', 'sonnb_xengallery_navbar_template', 'resources_tab_links', 'EWRporta2_Navtabs', 'sonnb_xengallery_nav_visitor', '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', 'PAGE_CONTAINER')
    	AND style_id = ?
    	AND language_id = ?
    Params: 4, 1
    Run Time: 0.001192
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_template_compiledrangePRIMARYPRIMARY60 34Using where
  16. SELECT title, phrase_text
    FROM xf_phrase_compiled
    WHERE language_id = ?
    	AND title IN ('viewing_forum_list', 'user_field_aim_desc', 'user_field_icq_desc', 'user_field_yahoo_desc', 'user_field_skype_desc', 'user_field_facebook_desc', 'user_field_twitter_desc')
    Params: 1
    Run Time: 0.000597
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_phrase_compiledrangePRIMARYPRIMARY106 7Using where
  17. SELECT count_given as rating_count, rating, 1 as given
    FROM dark_postrating_count
    WHERE user_id = ?
    
    UNION                
    
    SELECT count_received as rating_count, rating, 0 as given
    FROM dark_postrating_count
    WHERE user_id = ?
    
    ORDER BY rating_count desc, rating asc
    Params: 61736, 61736
    Run Time: 0.000385
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    PRIMARYdark_postrating_countrefuser_id_ratinguser_id_rating4const2 
    UNIONdark_postrating_countrefuser_id_ratinguser_id_rating4const2 
    UNION RESULT<union1,2>ALL     Using filesort
  18. SELECT COUNT(*)
    FROM xf_liked_content
    WHERE like_user_id = ?
    Params: 61736
    Run Time: 0.000495
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_liked_contentreflike_user_content_type_idlike_user_content_type_id4const335Using index
  19. SELECT count_given as rating_count, rating, 1 as given
    FROM dark_postrating_count
    WHERE user_id = ?
    
    UNION                
    
    SELECT count_received as rating_count, rating, 0 as given
    FROM dark_postrating_count
    WHERE user_id = ?
    
    ORDER BY rating_count desc, rating asc
    Params: 61736, 61736
    Run Time: 0.000137
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    PRIMARYdark_postrating_countrefuser_id_ratinguser_id_rating4const2 
    UNIONdark_postrating_countrefuser_id_ratinguser_id_rating4const2 
    UNION RESULT<union1,2>ALL     Using filesort
  20. SELECT COUNT(*)
    FROM xf_liked_content
    WHERE like_user_id = ?
    Params: 61736
    Run Time: 0.000089
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_liked_contentreflike_user_content_type_idlike_user_content_type_id4const335Using index

Included Files (120, XenForo Classes: 60)

  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/XenResource/Listener/Proxy.php
  33. library/sonnb/XenGallery/Listener.php
  34. library/EWRporta2/Listener/Init.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/XenForo/Route/Prefix/Members.php
  41. library/XenForo/RouteMatch.php
  42. library/XenForo/ControllerPublic/Member.php
  43. library/XenForo/ControllerPublic/Abstract.php
  44. library/XenForo/Controller.php
  45. library/Dark/PostRating/EventListener.php
  46. library/sonnb/XenGallery/XenForo/ControllerPublic/Member.php
  47. library/Dark/PostRating/ControllerPublic/Member.php
  48. library/XenResource/Listener/Proxy/ControllerMember.php
  49. library/XenForo/Input.php
  50. library/XenForo/Session.php
  51. library/XenForo/Helper/Ip.php
  52. library/XenForo/Visitor.php
  53. library/XenForo/Model/User.php
  54. library/EWRporta2/Listener/Model.php
  55. library/sonnb/XenGallery/XenForo/Model/User.php
  56. library/Dark/PostRating/Model/User.php
  57. library/XenResource/Listener/Proxy/ModelUser.php
  58. library/EWRporta2/Model/User.php
  59. library/XenForo/Permission.php
  60. library/XenForo/Helper/Php.php
  61. library/XenForo/Phrase.php
  62. library/XenForo/Locale.php
  63. library/Waindigo/Listener/ControllerPreDispatch.php
  64. library/Waindigo/Listener/ControllerPreDispatch/20131003.php
  65. library/Waindigo/Listener/Template/20140101.php
  66. library/Waindigo/Listener/TemplatePostRender/20130522.php
  67. library/Waindigo/Listener/InitDependencies.php
  68. library/Waindigo/Listener/InitDependencies/20140101.php
  69. library/XenForo/ControllerResponse/Reroute.php
  70. library/XenForo/ControllerResponse/Abstract.php
  71. library/XenForo/ControllerHelper/UserProfile.php
  72. library/XenForo/ControllerHelper/Abstract.php
  73. library/Dark/PostRating/Model.php
  74. library/XenForo/Model/UserProfile.php
  75. library/XenForo/Model/Session.php
  76. library/Dark/PostRating/Model/Session.php
  77. library/XenForo/ControllerPublic/Forum.php
  78. library/EWRporta2/Listener/Controller.php
  79. library/sonnb/XenGallery/XenForo/ControllerPublic/Forum.php
  80. library/EWRporta2/ControllerPublic/Forum.php
  81. library/XenForo/Model/ProfilePost.php
  82. library/sonnb/XenGallery/XenForo/Model/ProfilePost.php
  83. library/XenForo/Model/UserField.php
  84. library/sonnb/XenGallery/Model/Gallery.php
  85. library/sonnb/XenGallery/Model/Abstract.php
  86. library/XenForo/Model/UserIgnore.php
  87. library/XenForo/Model/Conversation.php
  88. library/Dark/PostRating/Model/Conversation.php
  89. library/XenForo/ControllerResponse/View.php
  90. library/XenForo/Helper/Cookie.php
  91. library/XenForo/ViewRenderer/HtmlPublic.php
  92. library/XenForo/ViewRenderer/Abstract.php
  93. library/XenForo/Template/Public.php
  94. library/XenForo/Template/Abstract.php
  95. library/XenForo/ViewPublic/Member/View.php
  96. library/XenForo/ViewPublic/Base.php
  97. library/XenForo/View.php
  98. library/EWRporta2/Listener/ViewPublic.php
  99. library/XenForo/BbCode/Parser.php
  100. library/XenForo/BbCode/Formatter/Base.php
  101. library/EWRporta2/Listener/BbCode.php
  102. library/sonnb/XenGallery/XenForo/BbCode/Formatter/Base.php
  103. library/EWRporta2/BbCode/Formatter.php
  104. library/XenForo/BbCode/TextWrapper.php
  105. library/XenResource/Listener/Template.php
  106. library/ArtodiaFramework/Listener.php
  107. library/EWRporta2/Listener/NavTabs.php
  108. library/EWRporta2/Model/Perms.php
  109. library/OpenGraphImage/Callback.php
  110. library/sonnb/XenGallery/Template/Helper/Cover.php
  111. library/XenForo/ViewPublic/Helper/User.php
  112. library/EWRporta2/Listener/Template.php
  113. library/Waindigo/SmilieImporter/Listener/TemplatePostRender.php
  114. library/XenForo/Model/Like.php
  115. library/Dark/PostRating/Model/Like.php
  116. library/XenForo/Helper/String.php
  117. library/XenForo/Route/Prefix/ProfilePosts.php
  118. library/XenForo/ViewRenderer/Json.php
  119. library/XenForo/Model/Avatar.php
  120. library/XenForo/Debug.php