Page Time: 3.0423s

Memory: 8.9285 MB (Peak: 9.6521 MB)

Queries (52, time: 2.8276s, 92.9%)

  1. SELECT data_key, data_value
    FROM xf_data_registry
    WHERE data_key IN ('options', 'languages', 'contentTypes', 'codeEventListeners', 'cron', 'simpleCache', 'routesPublic', 'nodeTypes', 'bannedIps', 'discouragedIps', 'styles', 'displayStyles', 'smilies', 'bbCode', 'threadPrefixes', 'trophyUserTitles', 'reportCounts', 'moderationCounts', 'notices', 'userFieldsInfo')
    Run Time: 0.005822
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_data_registryrangePRIMARYPRIMARY77 20Using where
  2. SELECT data_key, data_value
    FROM xf_data_registry
    WHERE data_key IN ('ads', 'adPositions', 'adTypes')
    Run Time: 0.000394
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_data_registryrangePRIMARYPRIMARY77 3Using where
  3. SELECT cache_value
    FROM xf_permission_combination
    WHERE permission_combination_id = ?
    Params: 1
    Run Time: 0.000398
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_combinationconstPRIMARYPRIMARY4const1 
  4. INSERT INTO `xf_session` (`session_id`, `session_data`, `expiry_date`) VALUES (?, ?, ?)
    Params: ad54bb6670c04fa4b5ebdebe54963035, a:5:{s:12:"sessionStart";i:1398065647;s:2:"ip";i:1796622039;s:9:"userAgent";s:39:"CCBot/2.0 (http://commoncrawl.org/faq/)";s:7:"isRobot";b:0;s:16:"previousActivity";i:0;}, 1398069247
    Run Time: 0.000438
  5. INSERT INTO xf_session_activity
    	(user_id, unique_key, ip, controller_name, controller_action, view_state, params, view_date)
    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)
    Params: 0, 1796622039, 1796622039, EWRporta_ControllerPublic_Portal, Index, valid, , 1398065647
    Run Time: 0.000327
  6. SELECT *
    	FROM EWRporta_layouts
    WHERE layout_id = ?
    Params: portal
    Run Time: 0.000590
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEEWRporta_layoutsconstPRIMARYPRIMARY77const1 
  7. SELECT *, 'disabled' AS position
    	FROM EWRporta_blocks
    WHERE active = 1
    ORDER BY block_id ASC
    Run Time: 0.000686
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEEWRporta_blocksindex PRIMARY77 10Using where
  8. SELECT * FROM EWRporta_caches
    Run Time: 0.000819
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEEWRporta_cachesALL    4 
  9. SELECT * FROM EWRporta_options
    Run Time: 0.000716
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEEWRporta_optionsALL    32 
  10. SELECT *
    	FROM EWRporta_options
    WHERE option_id = ?
    Params: recentnews_forum
    Run Time: 0.000882
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEEWRporta_optionsconstPRIMARYPRIMARY152const1 
  11. SELECT xf_thread.*, xf_post.message,
    	IF(EWRporta_promotes.promote_date IS NULL, xf_thread.post_date, EWRporta_promotes.promote_date) AS promote_date
    FROM xf_thread
    	INNER JOIN xf_post ON (xf_post.post_id = xf_thread.first_post_id)
    	INNER JOIN xf_attachment ON (xf_attachment.content_id = xf_thread.first_post_id AND xf_attachment.content_type = 'post')
    	INNER JOIN xf_attachment_data ON (xf_attachment_data.data_id = xf_attachment.data_id AND xf_attachment_data.filename = ?)
    	LEFT JOIN EWRporta_promotes ON (EWRporta_promotes.thread_id = xf_thread.thread_id)
    WHERE (xf_thread.node_id IN (10) OR EWRporta_promotes.promote_date < ?)
    	AND xf_thread.discussion_state = 'visible'
    	AND IF(EWRporta_promotes.promote_date IS NULL, xf_thread.post_date, EWRporta_promotes.promote_date) < ?
    ORDER BY promote_date DESC
    LIMIT ?
    Params: slide.jpg, 1398065647, 1398065647, 5
    Run Time: 0.021549
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_threadALLnode_id_last_post_date,node_id_sticky_last_post_date   6369Using where; Using temporary; Using filesort
    SIMPLExf_attachmentrefcontent_type_id_datecontent_type_id_date81const,db420879983.xf_thread.first_post_id1Using where
    SIMPLExf_attachment_dataeq_refPRIMARYPRIMARY4db420879983.xf_attachment.data_id1Using where
    SIMPLEEWRporta_promoteseq_refPRIMARYPRIMARY4db420879983.xf_thread.thread_id1Using where
    SIMPLExf_posteq_refPRIMARYPRIMARY4db420879983.xf_attachment.content_id1Using where
  12. 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 (67366)
    ORDER BY attachment.content_id, attachment.attach_date
    Params: post
    Run Time: 0.000679
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEattachmentrefcontent_type_id_datecontent_type_id_date81const,const2Using where
    SIMPLEdataeq_refPRIMARYPRIMARY4db420879983.attachment.data_id1 
  13. 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 (65647)
    ORDER BY attachment.content_id, attachment.attach_date
    Params: post
    Run Time: 0.000581
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEattachmentrefcontent_type_id_datecontent_type_id_date81const,const2Using where
    SIMPLEdataeq_refPRIMARYPRIMARY4db420879983.attachment.data_id1 
  14. 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 (65646)
    ORDER BY attachment.content_id, attachment.attach_date
    Params: post
    Run Time: 0.000566
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEattachmentrefcontent_type_id_datecontent_type_id_date81const,const1Using where
    SIMPLEdataeq_refPRIMARYPRIMARY4db420879983.attachment.data_id1 
  15. 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 (65644)
    ORDER BY attachment.content_id, attachment.attach_date
    Params: post
    Run Time: 0.000553
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEattachmentrefcontent_type_id_datecontent_type_id_date81const,const1Using where
    SIMPLEdataeq_refPRIMARYPRIMARY4db420879983.attachment.data_id1 
  16. 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 (65643)
    ORDER BY attachment.content_id, attachment.attach_date
    Params: post
    Run Time: 0.000547
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEattachmentrefcontent_type_id_datecontent_type_id_date81const,const1Using where
    SIMPLEdataeq_refPRIMARYPRIMARY4db420879983.attachment.data_id1 
  17. SELECT *
    	FROM EWRporta_caches
    WHERE block_id = ?
    Params: RecentSlider
    Run Time: 0.000557
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEEWRporta_cachesconstPRIMARYPRIMARY77const1 
  18. SELECT *
    	FROM EWRporta_caches
    WHERE block_id = ?
    Params: RecentSlider
    Run Time: 0.000456
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEEWRporta_cachesconstPRIMARYPRIMARY77const1 
  19. begin
    Run Time: 0.000253
  20. UPDATE `EWRporta_caches` SET `date` = ? WHERE (block_id = 'RecentSlider')
    Params: 1398065647
    Run Time: 0.000356
  21. commit
    Run Time: 0.003259
  22. SELECT data_value
    FROM xf_data_registry
    WHERE data_key = ?
    Params: dark_postrating_ratings
    Run Time: 0.000781
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_data_registryconstPRIMARYPRIMARY77const1 
  23. SELECT session_activity.*
    	,
    	user.*,
    	user_profile.*,
    	user_option.*
    		,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (15,17,18,19,20,21,22,23,24,25,26)) as positive_rating_count
    	
    		,(select sum(count_received) from dark_postrating_count where user_id = user.user_id and rating in (16)) as negative_rating_count
    	
    FROM xf_session_activity AS session_activity
    
    	LEFT JOIN xf_user AS user ON
    		(user.user_id = session_activity.user_id)
    	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)
    WHERE (session_activity.view_date > 1398064747)
    ORDER BY session_activity.view_date DESC
    Run Time: 0.001548
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    PRIMARYsession_activityALLview_date   72Using where; Using filesort
    PRIMARYusereq_refPRIMARYPRIMARY4db420879983.session_activity.user_id1 
    PRIMARYuser_profileeq_refPRIMARYPRIMARY4db420879983.user.user_id1 
    PRIMARYuser_optioneq_refPRIMARYPRIMARY4db420879983.user.user_id1 
    DEPENDENT SUBQUERYdark_postrating_counteq_refuser_id_ratinguser_id_rating8db420879983.user.user_id,const1 
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4db420879983.user.user_id2Using where
  24. SELECT data_value
    FROM xf_data_registry
    WHERE data_key = ?
    Params: boardTotals
    Run Time: 0.000483
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_data_registryconstPRIMARYPRIMARY77const1 
  25. SELECT *
    	FROM EWRporta_caches
    WHERE block_id = ?
    Params: BoardTotals
    Run Time: 0.000418
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEEWRporta_cachesconstPRIMARYPRIMARY77const1 
  26. SELECT *
    	FROM EWRporta_caches
    WHERE block_id = ?
    Params: BoardTotals
    Run Time: 0.000345
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEEWRporta_cachesconstPRIMARYPRIMARY77const1 
  27. begin
    Run Time: 0.000249
  28. UPDATE `EWRporta_caches` SET `date` = ? WHERE (block_id = 'BoardTotals')
    Params: 1398065647
    Run Time: 0.000333
  29. commit
    Run Time: 0.002833
  30. SELECT thread.*
    	,
    	user.*, IF(user.username IS NULL, thread.username, user.username) AS username,
    	node.title AS node_title,
    	NULL AS thread_read_date,
    	0 AS thread_is_watched,
    	0 AS user_post_count,
    permission.cache_value AS node_permission_cache
    FROM xf_thread AS thread
    
    	LEFT JOIN xf_user AS user ON
    		(user.user_id = thread.user_id)
    	INNER JOIN xf_node AS node ON
    		(node.node_id = thread.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 = thread.node_id)
    WHERE (thread.discussion_state IN ('visible')) AND (thread.last_post_date > 1397806447) AND thread.node_id IN ('6', '7', '16', '8', '10', '39')
    ORDER BY thread.last_post_date DESC
     LIMIT 10
    Run Time: 0.002051
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEthreadrangenode_id_last_post_date,node_id_sticky_last_post_date,last_post_datelast_post_date4 4Using where
    SIMPLEnodeeq_refPRIMARYPRIMARY4db420879983.thread.node_id1 
    SIMPLEpermissioneq_refPRIMARYPRIMARY85const,const,db420879983.node.node_id1 
    SIMPLEusereq_refPRIMARYPRIMARY4db420879983.thread.user_id1 
  31. SELECT cache_value
    FROM xf_permission_cache_content
    WHERE permission_combination_id = ?
    	AND content_type = ?
    	AND content_id = ?
    Params: 1, node, 6
    Run Time: 0.000400
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_cache_contentconstPRIMARYPRIMARY85const,const,const1 
  32. SELECT cache_value
    FROM xf_permission_cache_content
    WHERE permission_combination_id = ?
    	AND content_type = ?
    	AND content_id = ?
    Params: 1, node, 7
    Run Time: 0.000647
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_cache_contentconstPRIMARYPRIMARY85const,const,const1 
  33. SELECT xf_thread.*, xf_user.*, xf_post.message, xf_post.attach_count, xf_node.title AS node_title, 
    	IF(xf_user.username IS NULL, xf_thread.username, xf_user.username) AS username,
    	IF(EWRporta_promotes.promote_date IS NULL, xf_thread.post_date, EWRporta_promotes.promote_date) AS promote_date,
    	EWRporta_promotes.promote_icon, EWRporta_promotes.promote_data
    FROM xf_thread
    	LEFT JOIN xf_user ON (xf_user.user_id = xf_thread.user_id)
    	INNER JOIN xf_post ON (xf_post.post_id = xf_thread.first_post_id)
    	INNER JOIN xf_node ON (xf_node.node_id = xf_thread.node_id)
    	LEFT JOIN EWRporta_promotes ON (EWRporta_promotes.thread_id = xf_thread.thread_id)
    
    WHERE (xf_thread.node_id IN ('6') OR EWRporta_promotes.promote_date < ?)
    	AND xf_thread.discussion_state = 'visible'
    	AND IF(EWRporta_promotes.promote_date IS NULL, xf_thread.post_date, EWRporta_promotes.promote_date) < ?
    ORDER BY  promote_date DESC
    LIMIT ?, ?
    Params: 1398065647, 1398065647, 0, 3
    Run Time: 0.057739
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_threadALLnode_id_last_post_date,node_id_sticky_last_post_date   6369Using where; Using temporary; Using filesort
    SIMPLExf_nodeeq_refPRIMARYPRIMARY4db420879983.xf_thread.node_id1 
    SIMPLEEWRporta_promoteseq_refPRIMARYPRIMARY4db420879983.xf_thread.thread_id1Using where
    SIMPLExf_usereq_refPRIMARYPRIMARY4db420879983.xf_thread.user_id1 
    SIMPLExf_posteq_refPRIMARYPRIMARY4db420879983.xf_thread.first_post_id1 
  34. SELECT COUNT(*) AS total
    	FROM xf_thread
    	LEFT JOIN EWRporta_promotes ON (EWRporta_promotes.thread_id = xf_thread.thread_id)
    
    WHERE (xf_thread.node_id IN ('6') OR EWRporta_promotes.promote_date < ?)
    	AND xf_thread.discussion_state = 'visible'
    	AND IF(EWRporta_promotes.promote_date IS NULL, xf_thread.post_date, EWRporta_promotes.promote_date) < ?
    Params: 1398065647, 1398065647
    Run Time: 0.010874
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_threadALLnode_id_last_post_date,node_id_sticky_last_post_date   6369Using where
    SIMPLEEWRporta_promoteseq_refPRIMARYPRIMARY4db420879983.xf_thread.thread_id1Using where
  35. SELECT *
    	FROM EWRporta_caches
    WHERE block_id = ?
    Params: RecentNews2
    Run Time: 0.000604
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEEWRporta_cachesconstPRIMARYPRIMARY77const1 
  36. SELECT *
    	FROM EWRporta_caches
    WHERE block_id = ?
    Params: RecentNews2
    Run Time: 0.000473
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEEWRporta_cachesconstPRIMARYPRIMARY77const1 
  37. begin
    Run Time: 0.000386
  38. UPDATE `EWRporta_caches` SET `date` = ? WHERE (block_id = 'RecentNews2')
    Params: 1398065647
    Run Time: 0.000377
  39. commit
    Run Time: 0.003278
  40. SELECT title, template_compiled
    FROM xf_template_compiled
    WHERE title IN ('page_nav', 'EWRblock_RecentSlider', 'EWRblock_SharePage', 'EWRblock_OnlineUsers', 'EWRblock_BoardTotals', 'EWRblock_FaceBook', 'EWRblock_Twitter', 'EWRblock_RecentThreads', 'bb_code_tag_code', 'bb_code_tag_php', 'bb_code_tag_html', 'bb_code_tag_quote', 'bb_code_tag_attach', 'EWRblock_RecentNews2', 'EWRporta_Portal', 'notice_cookies', 'EWRporta_Navtabs', 'xfr_useralbums_links', 'xi_stocktrader_tab_links', 'ThreadStarter', 'forumwatch_navigation_tabs_forums', 'PAGE_CONTAINER')
    	AND style_id = ?
    	AND language_id = ?
    Params: 2, 1
    Run Time: 0.003188
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_template_compiledrangePRIMARYPRIMARY160 22Using where
  41. SELECT title, phrase_text
    FROM xf_phrase_compiled
    WHERE language_id = ?
    	AND title IN ('home')
    Params: 1
    Run Time: 0.000362
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_phrase_compiledconstPRIMARYPRIMARY231const,const1 
  42. SELECT title, phrase_text
    FROM xf_phrase_compiled
    WHERE language_id = ?
    	AND title IN ('notice_cookies')
    Params: 1
    Run Time: 0.000427
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_phrase_compiledconstPRIMARYPRIMARY231const,const1 
  43. SELECT *
    FROM merc_ad_last_view
    ORDER BY view_date ASC
    Run Time: 0.000475
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEmerc_ad_last_viewsystem    1 
  44. SELECT title, template_compiled
    FROM xf_template_compiled
    WHERE title IN ('merc_code_render')
    	AND style_id = ?
    	AND language_id = ?
    Params: 2, 1
    Run Time: 0.000354
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_template_compiledconstPRIMARYPRIMARY160const,const,const1 
  45. SELECT *
    FROM xf_notification
    ORDER BY notification_id
    Run Time: 0.000549
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_notificationindex PRIMARY4 1 
  46. SELECT title, template_compiled
    FROM xf_template_compiled
    WHERE title IN ('GritterNotifications')
    	AND style_id = ?
    	AND language_id = ?
    Params: 2, 1
    Run Time: 0.000393
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_template_compiledconstPRIMARYPRIMARY160const,const,const1 
  47. SELECT title, template_compiled
    FROM xf_template_compiled
    WHERE title IN ('cta_countdown_main')
    	AND style_id = ?
    	AND language_id = ?
    Params: 2, 1
    Run Time: 0.000864
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_template_compiledconstPRIMARYPRIMARY160const,const,const1 
  48.             SELECT post.*, thread.*, user.*
                FROM xf_post AS post
                LEFT JOIN xf_thread AS thread ON (thread.thread_id = post.thread_id)
                LEFT JOIN xf_user AS user ON (user.user_id = post.user_id)
                WHERE NOT ISNULL(thread.thread_id) 
    AND post.message_state = 'visible'
    AND user.is_banned = 0
    GROUP BY post.post_id
                ORDER BY post.post_date DESC
                LIMIT 5
    Run Time: 2.692161
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEthreadALLPRIMARY   6369Using where; Using temporary; Using filesort
    SIMPLEpostrefthread_id_post_date,thread_id_position,user_idthread_id_position4db420879983.thread.thread_id3Using where
    SIMPLEusereq_refPRIMARYPRIMARY4db420879983.post.user_id1Using where
  49. SELECT
    	post.*
    	,
    		thread.*, thread.user_id AS thread_user_id, thread.username AS thread_username,
    		thread.post_date AS thread_post_date,
    		post.user_id, post.username, post.post_date,
    		user.*, IF(user.username IS NULL, post.username, user.username) AS username, (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 15) as dark_postrating_15_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 16) as dark_postrating_16_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 17) as dark_postrating_17_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 18) as dark_postrating_18_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 19) as dark_postrating_19_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 20) as dark_postrating_20_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 21) as dark_postrating_21_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 22) as dark_postrating_22_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 23) as dark_postrating_23_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 24) as dark_postrating_24_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 25) as dark_postrating_25_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 26) as dark_postrating_26_count
    
    		,(select sum(count_received) from dark_postrating_count where user_id = post.user_id and rating in (15,17,18,19,20,21,22,23,24,25,26)) as positive_rating_count
    	
    		,(select sum(count_received) from dark_postrating_count where user_id = post.user_id and rating in (16)) as negative_rating_count
    	,
    pr2.rating, session.view_date
    FROM xf_post AS post
    		INNER JOIN xf_thread AS thread ON
    			(thread.thread_id = post.thread_id)
    		LEFT JOIN xf_user AS user ON
    			(user.user_id = post.user_id)
    LEFT JOIN dark_postrating pr2 ON (post.post_id = pr2.post_id and pr2.user_id = 0)LEFT OUTER JOIN xf_session_activity AS session ON post.user_id = session.user_id
    WHERE post.post_id IN (73381, 73380, 73379, 73378, 73377)
    Run Time: 0.003162
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    PRIMARYpostrangePRIMARY,thread_id_post_date,thread_id_positionPRIMARY4 5Using where
    PRIMARYusereq_refPRIMARYPRIMARY4db420879983.post.user_id1 
    PRIMARYpr2eq_refpost_id_user_id,post_id_rating,user_id_ratingpost_id_user_id8db420879983.post.post_id,const1 
    PRIMARYsessionALLPRIMARY   72 
    PRIMARYthreadeq_refPRIMARYPRIMARY4db420879983.post.thread_id1 
    DEPENDENT SUBQUERYdark_postrating_counteq_refuser_id_ratinguser_id_rating8db420879983.post.user_id,const1 
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4db420879983.post.user_id2Using where
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8db420879983.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8db420879983.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8db420879983.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8db420879983.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8db420879983.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8db420879983.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8db420879983.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8db420879983.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8db420879983.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8db420879983.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8db420879983.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8db420879983.post.post_id,const1Using index
  50. SELECT title, template_compiled
    FROM xf_template_compiled
    WHERE title IN ('borbole_recent_posts_sidebar')
    	AND style_id = ?
    	AND language_id = ?
    Params: 2, 1
    Run Time: 0.000791
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_template_compiledconstPRIMARYPRIMARY160const,const,const1 
  51. INSERT INTO merc_ad_view (ad_id)
    VALUES (2)
    Run Time: 0.000315
  52. REPLACE INTO merc_ad_last_view
    	(ad_id, view_date)
    VALUES
    	(2, 1398065647)
    Run Time: 0.000293

Included Files (177, XenForo Classes: 59)

  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.php
  17. library/XenForo/Model/DataRegistry.php
  18. library/XenForo/CodeEvent.php
  19. library/Zend/Db.php
  20. library/Zend/Db/Adapter/Mysqli.php
  21. library/Zend/Db/Adapter/Abstract.php
  22. library/Zend/Db/Select.php
  23. library/Zend/Db/Expr.php
  24. library/Zend/Db/Profiler.php
  25. library/Zend/Db/Statement/Mysqli.php
  26. library/Zend/Db/Statement.php
  27. library/Zend/Db/Statement/Interface.php
  28. library/Zend/Db/Profiler/Query.php
  29. library/XenForo/Options.php
  30. library/XenForo/Link.php
  31. library/XenForo/Template/Helper/Core.php
  32. library/Merc/AdManager/Listener/InitDependencies.php
  33. library/XenPlus/Listener/InitDependencies.php
  34. library/XenPlus/Listener/Abstract.php
  35. library/Merc/AdManager/AdHandler/Code.php
  36. library/Merc/AdManager/AdHandler/Abstract.php
  37. library/Merc/AdManager/Model/Code.php
  38. library/EWRporta/Listener/Init.php
  39. library/EWRporta/Helper/Index.php
  40. library/ArtyUserTitles/Listener.php
  41. library/XenForo/Router.php
  42. library/XenForo/Route/ResponseSuffix.php
  43. library/XenForo/Route/Interface.php
  44. library/XenForo/Route/Prefix.php
  45. library/EWRporta/Route/Index.php
  46. library/XenForo/Route/BuilderInterface.php
  47. library/EWRporta/Listener/Route.php
  48. library/XenForo/RouteMatch.php
  49. library/EWRporta/ControllerPublic/Portal.php
  50. library/XenForo/ControllerPublic/Abstract.php
  51. library/XenForo/Controller.php
  52. library/SortMem/Listener/LoadClassController.php
  53. library/XenFacil/AreYouAHuman/Register.php
  54. library/NFLJ/StockTrader/Listener/LoadClassController.php
  55. library/TMS/Listener/Listener.php
  56. library/XenTrCom/WhoHasVisited/Listener/Listener.php
  57. library/GritterNotifications/Listener.php
  58. library/Social/Listener.php
  59. library/ForumWatch/Listener.php
  60. library/Dark/PostRating/EventListener.php
  61. library/EWRporta/Listener/Controller.php
  62. library/XenForo/Input.php
  63. library/XenForo/Session.php
  64. library/XenForo/Visitor.php
  65. library/XenForo/Model/User.php
  66. library/MyPoints/Listener/LoadClassModel.php
  67. library/SortMem/Listener/LoadClassModel.php
  68. library/EWRporta/Listener/Model.php
  69. library/Asp/OnlineStatus/Plugin/Plugin.php
  70. library/VietXfAdvStats/Listener.php
  71. library/Merc/AdManager/Listener/LoadClass.php
  72. library/XenPlus/Listener/LoadClass.php
  73. library/Dark/PostRating/Model/User.php
  74. library/ForumWatch/Extend/Model/User.php
  75. library/MyPoints/Model/User.php
  76. library/SortMem/Model/User.php
  77. library/VietXfAdvStats/XenForo/Model/User.php
  78. library/XenForo/Permission.php
  79. library/XenForo/Phrase.php
  80. library/XenForo/Locale.php
  81. library/EWRporta/Model/Perms.php
  82. library/EWRporta/Route/Portal.php
  83. library/EWRporta/Route/Custom.php
  84. library/XenForo/ControllerResponse/View.php
  85. library/XenForo/ControllerResponse/Abstract.php
  86. library/XenForo/Helper/Cookie.php
  87. library/XenForo/ViewRenderer/HtmlPublic.php
  88. library/XenForo/ViewRenderer/Abstract.php
  89. library/XenForo/Template/Public.php
  90. library/XenForo/Template/Abstract.php
  91. library/EWRporta/ViewPublic/Portal.php
  92. library/XenForo/ViewPublic/Base.php
  93. library/XenForo/View.php
  94. library/EWRporta/Listener/ViewPublic.php
  95. library/MyPoints/Listener/LoadViewPublic.php
  96. library/EWRporta/ViewPublic/Custom.php
  97. library/EWRporta/Model/Blocks.php
  98. library/EWRporta/Model/Layouts.php
  99. library/EWRporta/Model/Caches.php
  100. library/EWRporta/Model/Options.php
  101. library/EWRporta/Block/RecentSlider.php
  102. library/EWRporta/Model/Promotes.php
  103. library/XenForo/Model/Attachment.php
  104. library/EWRporta/Model/Attachment.php
  105. library/Merc/AdManager/Model/Attachment.php
  106. library/XenForo/Route/Prefix/Attachments.php
  107. library/XenForo/DataWriter.php
  108. library/EWRporta/DataWriter/Caches.php
  109. library/EWRporta/Listener/DataWriter.php
  110. library/DigitalPointSpy/Listener/LoadClassDataWriter.php
  111. library/MyPoints/Listener/LoadClassDataWriter.php
  112. library/XenForo/Db.php
  113. library/XenForo/BbCode/Parser.php
  114. library/XenForo/BbCode/Formatter/Base.php
  115. library/XenForo/BbCode/Formatter/Text.php
  116. library/EWRporta/Listener/BbCode.php
  117. library/XenForo/Helper/String.php
  118. library/ThreadStarter/Listener/Listener.php
  119. library/NFLJ/StockTrader/Listener/TemplateHook.php
  120. library/SortMem/Listener/MemListSort.php
  121. library/VietXfAdvStats/Model/GetUserGroup.php
  122. library/TheHappyPlace/Listener.php
  123. library/MyPoints/Template/Hook.php
  124. library/XfRu/UserAlbums/EventListener/Template.php
  125. library/EWRporta/Block/OnlineUsers.php
  126. library/XenForo/Model/Session.php
  127. library/Dark/PostRating/Model/Session.php
  128. library/Dark/PostRating/Model.php
  129. library/EWRporta/Block/BoardTotals.php
  130. library/EWRporta/Block/Twitter.php
  131. library/EWRporta/Block/RecentThreads.php
  132. library/XenForo/Model/Thread.php
  133. library/VietXfAdvStats/XenForo/Model/Thread.php
  134. library/XenForo/Model/PermissionCache.php
  135. library/XenForo/Model/Forum.php
  136. library/ForumWatch/Extend/Model/Forum.php
  137. library/XenForo/Helper/Discussion.php
  138. library/EWRporta/Block/RecentNews2.php
  139. library/EWRporta/BbCode/Formatter.php
  140. library/XenForo/ViewPublic/Helper/Message.php
  141. library/XenForo/BbCode/TextWrapper.php
  142. library/XenForo/Route/Prefix/Members.php
  143. library/EWRporta/Listener/NavTabs.php
  144. library/XfRu/UserAlbums/EventListener/Tab.php
  145. library/XfRu/UserAlbums/Permissions.php
  146. library/NFLJ/StockTrader/Listener/NavTab.php
  147. library/XenForo/Route/Prefix/Threads.php
  148. library/EWRporta/Route/Thread.php
  149. library/XenFacil/AreYouAHuman/Override.php
  150. library/Merc/AdManager/Listener/TemplatePostRender.php
  151. library/XenPlus/Listener/TemplatePostRender.php
  152. library/Merc/AdManager/Listener/TemplateHook.php
  153. library/XenPlus/Listener/TemplateHook.php
  154. library/SortMem/Listener/OptionTabs.php
  155. library/XenForo/Model/Avatar.php
  156. library/ForumRunner/EventListener/Hook.php
  157. library/XenPlus/Helper/Listener.php
  158. library/EWRporta/Listener/Template.php
  159. library/XfRu/UserAlbums/Model/Albums.php
  160. library/XfRu/UserAlbums/Model/Images.php
  161. library/CTA/CDtimer/Listener.php
  162. library/DigitalPointSpy/Listener/TemplateHook.php
  163. library/Borbole/RecentPosts/Listener.php
  164. library/XenForo/Route/Prefix/Forums.php
  165. library/XenForo/Debug.php
  166. library/VietXfAdvStats/Option.php
  167. library/Merc/AdManager/Model/Ad.php
  168. library/XenForo/Helper/Criteria.php
  169. library/GritterNotifications/Model/Notification.php
  170. library/Borbole/RecentPosts/RecentPosts.php
  171. library/XenForo/Model/Post.php
  172. library/Dark/PostRating/Model/Post.php
  173. library/ForumWatch/Extend/Model/Post.php
  174. library/EWRporta/Model/Post.php
  175. library/Asp/OnlineStatus/Model/AspPost.php
  176. library/XenForo/Route/Prefix/Posts.php
  177. library/XenForo/ViewRenderer/Json.php