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.000475
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_data_registry | range | PRIMARY | PRIMARY | 27 | | 26 | Using where |
SELECT data_key, data_value
FROM xf_data_registry
WHERE data_key IN ('brListenerClasses', 'brBriviumAddOns')
Run Time: 0.000068
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_data_registry | range | PRIMARY | PRIMARY | 27 | | 2 | Using where |
SELECT data_value
FROM xf_data_registry
WHERE data_key = ?
Params: brmsModernStatisticCache
Run Time: 0.000087
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_data_registry | const | PRIMARY | PRIMARY | 27 | const | 1 | |
SELECT data_value
FROM xf_data_registry
WHERE data_key = ?
Params: modLogCounts
Run Time: 0.000093
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | | | | | | | | Impossible WHERE noticed after reading const tables |
SELECT user.*, permission_combination.cache_value AS global_permission_cache
FROM xf_moderator AS moderator
INNER JOIN xf_user AS user ON (user.user_id = moderator.user_id)
LEFT JOIN xf_permission_combination AS permission_combination ON (permission_combination.permission_combination_id = user.permission_combination_id)
Run Time: 0.000164
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | moderator | index | PRIMARY | PRIMARY | 4 | | 8 | Using index |
SIMPLE | user | eq_ref | PRIMARY | PRIMARY | 4 | admin_123.moderator.user_id | 1 | |
SIMPLE | permission_combination | eq_ref | PRIMARY | PRIMARY | 4 | admin_123.user.permission_combination_id | 1 | |
DELETE FROM `xf_data_registry` WHERE (data_key = 'modLogCounts')
Run Time: 0.000134
SELECT cache_value
FROM xf_permission_combination
WHERE permission_combination_id = ?
Params: 1
Run Time: 0.000099
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_permission_combination | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SELECT xfa_blog_entry.*
,xf_user.*,deletion_log.*,liked_content.like_date,xfa_blog_entry_watch.watch_id watch_id,xfa_blog_entry_read.entry_read_date,user_follow.follow_user_id blog_owner_follows_visitor
FROM xfa_blog_entry
INNER JOIN xf_user ON xfa_blog_entry.user_id = xf_user.user_id LEFT JOIN xf_deletion_log deletion_log ON xfa_blog_entry.entry_id = deletion_log.content_id AND content_type = 'xfa_blog_entry'
LEFT JOIN xf_liked_content AS liked_content
ON (liked_content.content_type = 'xfa_blog_entry'
AND liked_content.content_id = xfa_blog_entry.entry_id
AND liked_content.like_user_id = 0)
LEFT JOIN xfa_blog_entry_watch ON xfa_blog_entry.entry_id = xfa_blog_entry_watch.entry_id AND xfa_blog_entry_watch.user_id = 0 LEFT JOIN xfa_blog_entry_read ON xfa_blog_entry.entry_id = xfa_blog_entry_read.entry_id AND xfa_blog_entry_read.user_id = 0 LEFT JOIN xf_user_follow user_follow ON xfa_blog_entry.user_id = user_follow.user_id AND follow_user_id = 0
WHERE
xfa_blog_entry.entry_id = ?
Params: 1313
Run Time: 0.000803
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xfa_blog_entry | const | PRIMARY,idx_user,idx_position | PRIMARY | 4 | const | 1 | |
SIMPLE | xf_user | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SIMPLE | deletion_log | const | PRIMARY | PRIMARY | 31 | const,const | 0 | unique row not found |
SIMPLE | liked_content | const | content_type_id_like_user_id,like_user_content_type_id | content_type_id_like_user_id | 35 | const,const,const | 0 | unique row not found |
SIMPLE | xfa_blog_entry_watch | const | ux_watch | ux_watch | 8 | const,const | 0 | unique row not found |
SIMPLE | xfa_blog_entry_read | const | user_id | user_id | 8 | const,const | 0 | unique row not found |
SIMPLE | user_follow | const | PRIMARY,follow_user_id | PRIMARY | 8 | const,const | 0 | unique row not found |
SELECT
blog.*, blog.user_id blog_exists,
user.*
,user_privacy.allow_view_blog,user_follow.follow_user_id blog_owner_follows_visitor,xfa_blog_read.blog_read_date
FROM xf_user user
LEFT JOIN xfa_blog blog ON user.user_id = blog.user_id
INNER JOIN xf_user_privacy user_privacy ON user.user_id = user_privacy.user_id LEFT JOIN xf_user_follow user_follow ON user.user_id = user_follow.user_id AND follow_user_id = 0 LEFT JOIN xfa_blog_read ON user.user_id = xfa_blog_read.blog_user_id AND xfa_blog_read.user_id = 0
WHERE
user.user_id = ?
Params: 9366
Run Time: 0.000627
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | user | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SIMPLE | blog | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SIMPLE | user_privacy | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SIMPLE | user_follow | const | PRIMARY,follow_user_id | PRIMARY | 8 | const,const | 0 | unique row not found |
SIMPLE | xfa_blog_read | const | user_id | user_id | 8 | const,const | 0 | unique row not found |
SELECT attachment.*,
data.filename, data.file_size, data.file_hash, data.file_path, 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 (1313)
ORDER BY attachment.content_id, attachment.attach_date
Params: xfa_blog_entry
Run Time: 0.001281
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | attachment | ref | content_type_id_date | content_type_id_date | 31 | const,const | 1 | Using index condition; Using where |
SIMPLE | data | eq_ref | PRIMARY | PRIMARY | 4 | admin_123.attachment.data_id | 1 | |
SELECT category.*
FROM xfa_blog_entry_category entry_category
INNER JOIN xfa_blog_category category ON entry_category.category_id = category.category_id
WHERE
entry_category.entry_id = ?
Params: 1313
Run Time: 0.000370
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | entry_category | ref | PRIMARY | PRIMARY | 4 | const | 2 | Using index |
SIMPLE | category | eq_ref | PRIMARY | PRIMARY | 4 | admin_123.entry_category.category_id | 1 | |
SELECT
xfa_blog_comment.*
,xf_user.*,deletion_log.*,liked_content.like_date,xfa_blog.last_entry blog_last_entry
,xfa_blog_read.blog_read_date blog_read_date
,xfa_blog.blog_key blog_key
FROM xfa_blog_comment
INNER JOIN xf_user ON xfa_blog_comment.user_id = xf_user.user_id LEFT JOIN xf_deletion_log deletion_log ON xfa_blog_comment.comment_id = deletion_log.content_id AND content_type = 'xfa_blog_comment'
LEFT JOIN xf_liked_content AS liked_content
ON (liked_content.content_type = 'xfa_blog_comment'
AND liked_content.content_id = xfa_blog_comment.comment_id
AND liked_content.like_user_id = 0)
LEFT JOIN xfa_blog ON xfa_blog_comment.user_id = xfa_blog.user_id
LEFT JOIN xfa_blog_read ON xfa_blog_comment.user_id = xfa_blog_read.blog_user_id AND xfa_blog_read.user_id = 0
WHERE
xfa_blog_comment.entry_id = ?
ORDER BY
xfa_blog_comment.post_date
Params: 1313
Run Time: 0.000759
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xfa_blog_comment | ref | idx_entry,idx_user,idx_position | idx_entry | 4 | const | 1 | Using where; Using filesort |
SIMPLE | deletion_log | eq_ref | PRIMARY | PRIMARY | 31 | const,admin_123.xfa_blog_comment.comment_id | 1 | Using where |
SIMPLE | liked_content | eq_ref | content_type_id_like_user_id,like_user_content_type_id | content_type_id_like_user_id | 35 | const,admin_123.xfa_blog_comment.comment_id,const | 1 | Using where |
SIMPLE | xfa_blog | eq_ref | PRIMARY | PRIMARY | 4 | admin_123.xfa_blog_comment.user_id | 1 | |
SIMPLE | xfa_blog_read | eq_ref | user_id | user_id | 8 | const,admin_123.xfa_blog_comment.user_id | 1 | |
SIMPLE | xf_user | eq_ref | PRIMARY | PRIMARY | 4 | admin_123.xfa_blog_comment.user_id | 1 | Using where |
INSERT INTO xfa_blog_entry_view
(entry_id, type, ipOrUser, views, last_visit)
VALUES
(?, ?, ?, ?, ?)
ON DUPLICATE KEY UPDATE
views = views + 1,
last_visit = VALUES(last_visit)
Params: 1313, guest, 586126463, 1, 1695326481
Run Time: 0.000993
INSERT INTO `xfa_blog_deferred_view` (`type`, `id`) VALUES (?, ?)
Params: entry, 1313
Run Time: 0.001091
SELECT *
FROM xf_draft
WHERE draft_key = ? AND user_id = ?
Params: xfa-blog-comment-1313, 0
Run Time: 0.000220
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | | | | | | | | Impossible WHERE noticed after reading const tables |
SELECT
xf_user.*,
xfa_blog_read.blog_read_date,
xfa_blog.last_entry,
xfa_blog.blog_key
FROM xfa_blog_watch
INNER JOIN xf_user ON xfa_blog_watch.blog_user_id = xf_user.user_id
INNER JOIN xfa_blog ON xf_user.user_id = xfa_blog.user_id
LEFT JOIN xfa_blog_read ON xfa_blog.user_id = xfa_blog_read.blog_user_id AND xfa_blog_read.user_id = 0
WHERE
xfa_blog_watch.user_id = ?
ORDER BY
xfa_blog.last_entry DESC
Params: 9366
Run Time: 0.001305
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xfa_blog_watch | ref | ux_watch | ux_watch | 4 | const | 1 | Using index; Using temporary; Using filesort |
SIMPLE | xf_user | eq_ref | PRIMARY | PRIMARY | 4 | admin_123.xfa_blog_watch.blog_user_id | 1 | Using where |
SIMPLE | xfa_blog | eq_ref | PRIMARY | PRIMARY | 4 | admin_123.xf_user.user_id | 1 | Using where |
SIMPLE | xfa_blog_read | eq_ref | user_id | user_id | 8 | const,admin_123.xfa_blog.user_id | 1 | |
SELECT
*
FROM
xfa_blog_category
WHERE
user_id IN (9366,0)
ORDER BY user_id ASC, display_order ASC
Run Time: 0.000127
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xfa_blog_category | ALL | id_user | | | | 102 | Using where; Using filesort |
INSERT INTO `xf_session` (`session_id`, `session_data`, `expiry_date`) VALUES (?, ?, ?)
Params: 816e2787fe9d4030534778c0f5720bee, , 1695330081
Run Time: 0.000192
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, , , XfAddOns_Blogs_ControllerPublic_BlogEntry, Index, valid, entry_id=1313, 1695326481,
Run Time: 0.000126
SELECT title, template_compiled
FROM xf_template_compiled
WHERE title IN ('BRMS_ModernStatistic', 'BRMS_modern_statistic_header', 'xfa_blog_panel_categories', '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', 'quoteME', 'editor', 'xfa_blog_entry', 'xfa_blog_navigation_links', 'waindigo_navigation_visitor_tab_joinusergroup', 'xfa_blog_navigation_tab_link', 'modess_moderator_bar_mod_log_counts', 'PAGE_CONTAINER')
AND style_id = ?
AND language_id = ?
Params: 5, 1
Run Time: 0.000656
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_template_compiled | range | PRIMARY | PRIMARY | 60 | | 18 | Using where |
SELECT title, phrase_text
FROM xf_phrase_compiled
WHERE language_id = ?
AND title IN ('xfa_blogs_categories')
Params: 1
Run Time: 0.000090
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_phrase_compiled | const | PRIMARY | PRIMARY | 106 | const,const | 1 | |
SELECT title, template_compiled
FROM xf_template_compiled
WHERE title IN ('bbms_twitter_css')
AND style_id = ?
AND language_id = ?
Params: 5, 1
Run Time: 0.000120
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_template_compiled | const | PRIMARY | PRIMARY | 60 | const,const,const | 1 | |
SELECT title, template_compiled
FROM xf_template_compiled
WHERE title IN ('kin_postthread_main')
AND style_id = ?
AND language_id = ?
Params: 5, 1
Run Time: 0.000110
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_template_compiled | const | PRIMARY | PRIMARY | 60 | const,const,const | 1 | |
SELECT title, template_compiled
FROM xf_template_compiled
WHERE title IN ('social_connect_status_editor')
AND style_id = ?
AND language_id = ?
Params: 5, 1
Run Time: 0.000097
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_template_compiled | const | PRIMARY | PRIMARY | 60 | const,const,const | 1 | |
SELECT title, template_compiled
FROM xf_template_compiled
WHERE title IN ('xxtW_js')
AND style_id = ?
AND language_id = ?
Params: 5, 1
Run Time: 0.000072
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_template_compiled | const | PRIMARY | PRIMARY | 60 | const,const,const | 1 | |
SELECT title, template_compiled
FROM xf_template_compiled
WHERE title IN ('bbms_twitter_XFormer')
AND style_id = ?
AND language_id = ?
Params: 5, 1
Run Time: 0.000093
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_template_compiled | const | PRIMARY | PRIMARY | 60 | const,const,const | 1 | |