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.007124
| Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| SIMPLE | xf_data_registry | range | PRIMARY | PRIMARY | 77 | | 20 | Using where |
SELECT cache_value
FROM xf_permission_combination
WHERE permission_combination_id = ?
Params: 1
Run Time: 0.000156
| Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| SIMPLE | xf_permission_combination | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SELECT thread.*
,
user.avatar_date, user.gravatar,
NULL AS thread_read_date,
0 AS thread_is_watched
FROM xf_thread AS thread
LEFT JOIN xf_user AS user ON
(user.user_id = thread.user_id)
WHERE thread.thread_id = ?
Params: 10397
Run Time: 0.000726
| Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| SIMPLE | thread | const | PRIMARY | PRIMARY | 4 | const | 1 | |
| SIMPLE | user | const | PRIMARY | PRIMARY | 4 | const | 1 | |
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: 66
Run Time: 0.000698
| Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| SIMPLE | forum | const | PRIMARY | PRIMARY | 4 | const | 1 | |
| SIMPLE | node | const | PRIMARY | PRIMARY | 4 | const | 1 | |
| SIMPLE | permission | const | PRIMARY | PRIMARY | 85 | const,const,const | 1 | |
SELECT data_value
FROM xf_data_registry
WHERE data_key = ?
Params: dark_postrating_ratings
Run Time: 0.000202
| Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| SIMPLE | xf_data_registry | const | PRIMARY | PRIMARY | 77 | const | 1 | |
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,
user_profile.*,
0 AS like_date, (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 1) as dark_postrating_1_count
, (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 14) as dark_postrating_14_count
, (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 = 2) as dark_postrating_2_count
, (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 3) as dark_postrating_3_count
, (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 4) as dark_postrating_4_count
, (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 5) as dark_postrating_5_count
, (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 6) as dark_postrating_6_count
, (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 7) as dark_postrating_7_count
, (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 8) as dark_postrating_8_count
, (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 9) as dark_postrating_9_count
, (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 10) as dark_postrating_10_count
, (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 11) as dark_postrating_11_count
, (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 12) as dark_postrating_12_count
, (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 13) as dark_postrating_13_count
,(select sum(count_received) from dark_postrating_count where user_id = post.user_id and rating in (1,14,15,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, 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 xf_user_profile AS user_profile ON
(user_profile.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.thread_id = ?
AND (((post.message_state IN ('visible'))
AND (post.position >= 0 AND post.position < 50) )
OR post.post_id = thread.first_post_id)
ORDER BY post.position ASC, post.post_date ASCParams: 10397
Run Time: 0.018149
| Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| PRIMARY | thread | const | PRIMARY | PRIMARY | 4 | const | 1 | Using temporary; Using filesort |
| PRIMARY | post | ref | PRIMARY,thread_id_post_date,thread_id_position | thread_id_post_date | 4 | const | 2 | Using where |
| PRIMARY | user | eq_ref | PRIMARY | PRIMARY | 4 | blaney_xenforo.post.user_id | 1 | |
| PRIMARY | user_profile | eq_ref | PRIMARY | PRIMARY | 4 | blaney_xenforo.post.user_id | 1 | |
| PRIMARY | pr2 | eq_ref | post_id_user_id,post_id_rating,user_id_rating | post_id_user_id | 8 | blaney_xenforo.post.post_id,const | 1 | |
| PRIMARY | session | ALL | PRIMARY | | | | 265 | |
| DEPENDENT SUBQUERY | dark_postrating_count | ref | user_id_rating | user_id_rating | 4 | blaney_xenforo.post.user_id | 2 | Using where |
| DEPENDENT SUBQUERY | dark_postrating_count | ref | user_id_rating | user_id_rating | 4 | blaney_xenforo.post.user_id | 2 | Using where |
| DEPENDENT SUBQUERY | dark_postrating_count | ref | user_id_rating | user_id_rating | 4 | blaney_xenforo.post.user_id | 2 | Using where |
| DEPENDENT SUBQUERY | pr | ref | post_id_rating | post_id_rating | 8 | blaney_xenforo.post.post_id,const | 1 | Using index |
| DEPENDENT SUBQUERY | pr | ref | post_id_rating | post_id_rating | 8 | blaney_xenforo.post.post_id,const | 1 | Using index |
| DEPENDENT SUBQUERY | pr | ref | post_id_rating | post_id_rating | 8 | blaney_xenforo.post.post_id,const | 1 | Using index |
| DEPENDENT SUBQUERY | pr | ref | post_id_rating | post_id_rating | 8 | blaney_xenforo.post.post_id,const | 1 | Using index |
| DEPENDENT SUBQUERY | pr | ref | post_id_rating | post_id_rating | 8 | blaney_xenforo.post.post_id,const | 1 | Using index |
| DEPENDENT SUBQUERY | pr | ref | post_id_rating | post_id_rating | 8 | blaney_xenforo.post.post_id,const | 1 | Using index |
| DEPENDENT SUBQUERY | pr | ref | post_id_rating | post_id_rating | 8 | blaney_xenforo.post.post_id,const | 1 | Using index |
| DEPENDENT SUBQUERY | pr | ref | post_id_rating | post_id_rating | 8 | blaney_xenforo.post.post_id,const | 1 | Using index |
| DEPENDENT SUBQUERY | pr | ref | post_id_rating | post_id_rating | 8 | blaney_xenforo.post.post_id,const | 1 | Using index |
| DEPENDENT SUBQUERY | pr | ref | post_id_rating | post_id_rating | 8 | blaney_xenforo.post.post_id,const | 1 | Using index |
| DEPENDENT SUBQUERY | pr | ref | post_id_rating | post_id_rating | 8 | blaney_xenforo.post.post_id,const | 1 | Using index |
| DEPENDENT SUBQUERY | pr | ref | post_id_rating | post_id_rating | 8 | blaney_xenforo.post.post_id,const | 1 | Using index |
| DEPENDENT SUBQUERY | pr | ref | post_id_rating | post_id_rating | 8 | blaney_xenforo.post.post_id,const | 1 | Using index |
| DEPENDENT SUBQUERY | pr | ref | post_id_rating | post_id_rating | 8 | blaney_xenforo.post.post_id,const | 1 | Using index |
| DEPENDENT SUBQUERY | pr | ref | post_id_rating | post_id_rating | 8 | blaney_xenforo.post.post_id,const | 1 | Using index |
INSERT DELAYED INTO xf_thread_view
(thread_id)
VALUES
(?)
Params: 10397
Run Time: 0.000354
SELECT *
FROM xf_node
WHERE lft < ? AND rgt > ?
ORDER BY lft ASC
Params: 82, 85
Run Time: 0.000732
| Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| SIMPLE | xf_node | ALL | lft | | | | 101 | Using where; Using filesort |
SELECT *
FROM EWRporta_options
WHERE option_id = ?
Params: recentnews_forum
Run Time: 0.000346
| Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| SIMPLE | EWRporta_options | const | PRIMARY | PRIMARY | 152 | const | 1 | |
SELECT *
FROM EWRporta_promotes
WHERE thread_id = ?
Params: 10397
Run Time: 0.000403
| Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| SIMPLE | | | | | | | | Impossible WHERE noticed after reading const tables |
INSERT INTO `xf_session` (`session_id`, `session_data`, `expiry_date`) VALUES (?, ?, ?)
Params: 90407e2908cbeabc0b83c44d35721c1c, a:5:{s:12:"sessionStart";i:1369468137;s:2:"ip";i:921877721;s:9:"userAgent";s:9:"CCBot/2.0";s:7:"isRobot";b:0;s:16:"previousActivity";i:0;}, 1369471737
Run Time: 0.000246
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, 921877721, 921877721, XenForo_ControllerPublic_Thread, Index, valid, thread_id=10397, 1369468137
Run Time: 0.000282
SELECT *
FROM EWRporta_layouts
WHERE layout_id = ?
Params: thread-10397
Run Time: 0.000367
| Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| SIMPLE | | | | | | | | Impossible WHERE noticed after reading const tables |
SELECT *
FROM EWRporta_layouts
WHERE layout_id = ?
Params: thread-forum-66
Run Time: 0.000298
| Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| SIMPLE | | | | | | | | Impossible WHERE noticed after reading const tables |
SELECT *
FROM EWRporta_layouts
WHERE layout_id = ?
Params: thread
Run Time: 0.000180
| Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| SIMPLE | | | | | | | | Impossible WHERE noticed after reading const tables |
SELECT page_name FROM EWRcarta_pages WHERE page_slug = 'index'
Run Time: 0.000174
| Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| SIMPLE | EWRcarta_pages | const | page_slug | page_slug | 302 | const | 1 | |
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', 'thread_view', 'EWRporta_Navtabs', 'EWRcarta_Navtabs', 'PAGE_CONTAINER')
AND style_id = ?
AND language_id = ?Params: 2, 1
Run Time: 0.000373
| Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| SIMPLE | xf_template_compiled | range | PRIMARY | PRIMARY | 160 | | 10 | Using where |
SELECT title, phrase_text
FROM xf_phrase_compiled
WHERE language_id = ?
AND title IN ('home', 'wiki')Params: 1
Run Time: 0.000122
| Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| SIMPLE | xf_phrase_compiled | range | PRIMARY | PRIMARY | 231 | | 2 | Using where |
SELECT title, template_compiled
FROM xf_template_compiled
WHERE title IN ('message_user_online')
AND style_id = ?
AND language_id = ?Params: 2, 1
Run Time: 0.000189
| Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| SIMPLE | xf_template_compiled | const | PRIMARY | PRIMARY | 160 | const,const,const | 1 | |
SELECT title, phrase_text
FROM xf_phrase_compiled
WHERE language_id = ?
AND title IN ('offline')Params: 1
Run Time: 0.000186
| Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| SIMPLE | xf_phrase_compiled | const | PRIMARY | PRIMARY | 231 | const,const | 1 | |
SELECT title, template_compiled
FROM xf_template_compiled
WHERE title IN ('dark_postrating_message_user_info')
AND style_id = ?
AND language_id = ?Params: 2, 1
Run Time: 0.000164
| Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| SIMPLE | xf_template_compiled | const | PRIMARY | PRIMARY | 160 | const,const,const | 1 | |
SELECT title, template_compiled
FROM xf_template_compiled
WHERE title IN ('dark_postrating')
AND style_id = ?
AND language_id = ?Params: 2, 1
Run Time: 0.000120
| Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
|---|
| SIMPLE | xf_template_compiled | const | PRIMARY | PRIMARY | 160 | const,const,const | 1 | |