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.000790
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_data_registry | ALL | PRIMARY | | | | 36 | Using where |
SELECT cache_value
FROM xf_permission_combination
WHERE permission_combination_id = ?
Params: 1
Run Time: 0.000310
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_permission_combination | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SELECT media.*
FROM xengallery_media AS media
WHERE media.media_id = ?
Params: 206
Run Time: 0.000588
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | media | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SELECT media.*
,
(
SELECT media.media_id
FROM xengallery_media AS media WHERE media.media_id < ? AND media.xengallery_category_id = category.xengallery_category_id AND media.media_state = 'visible' ORDER BY media.media_date DESC, media.media_id DESC LIMIT 1
) as next_id,
(
SELECT media.media_title
FROM xengallery_media AS media WHERE media.media_id = next_id LIMIT 1
) as next_title,
(
SELECT media.media_id
FROM xengallery_media AS media WHERE media.media_id > ? AND media.xengallery_category_id = category.xengallery_category_id AND media.media_state = 'visible' ORDER BY media.media_date ASC, media.media_id ASC LIMIT 1
) as prev_id,
(
SELECT media.media_title
FROM xengallery_media AS media WHERE media.media_id = prev_id LIMIT 1
) as prev_title
,
category.*,
user.*, user_profile.*, IF(user.username IS NULL, media.username, user.username) AS username,
attachment.attachment_id, attachment.data_id, attachment.attach_date,data.filename, data.file_size, data.file_hash, data.file_path, data.width, data.height, data.thumbnail_width, data.thumbnail_height
FROM xengallery_media AS media
LEFT JOIN xengallery_category AS category ON
(category.xengallery_category_id = media.xengallery_category_id)
LEFT JOIN xf_user AS user ON
(user.user_id = media.user_id)
LEFT JOIN xf_user_profile AS user_profile ON
(user_profile.user_id = media.user_id)
LEFT JOIN xf_attachment AS attachment ON
(attachment.content_type = 'xengallery_media' AND attachment.attachment_id = media.attachment_id)
LEFT JOIN xf_attachment_data AS data ON
(data.data_id = attachment.data_id)
WHERE media.media_id = ?
Params: 206, 206, 206
Run Time: 0.002178
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
PRIMARY | media | const | PRIMARY | PRIMARY | 4 | const | 1 | |
PRIMARY | category | const | PRIMARY | PRIMARY | 4 | const | 1 | |
PRIMARY | user | const | PRIMARY | PRIMARY | 4 | const | 1 | |
PRIMARY | user_profile | const | PRIMARY | PRIMARY | 4 | const | 1 | |
PRIMARY | attachment | const | PRIMARY,content_type_id_date | PRIMARY | 4 | const | 1 | |
PRIMARY | data | const | PRIMARY | PRIMARY | 4 | const | 1 | |
DEPENDENT SUBQUERY | media | eq_ref | PRIMARY | PRIMARY | 4 | func | 1 | Using where |
SUBQUERY | media | range | PRIMARY | PRIMARY | 4 | | 12 | Using where; Using filesort |
DEPENDENT SUBQUERY | media | eq_ref | PRIMARY | PRIMARY | 4 | func | 1 | Using where |
SUBQUERY | media | range | PRIMARY | PRIMARY | 4 | | 196 | Using where; Using filesort |
INSERT DELAYED INTO xengallery_media_view
(media_id)
VALUES
(?)
Params: 206
Run Time: 0.000411
SELECT *
FROM xf_liked_content
WHERE content_type = ?
AND content_id = ?
AND like_user_id = ?
Params: xengallery_media, 206, 0
Run Time: 0.000348
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | | | | | | | | Impossible WHERE noticed after reading const tables |
SELECT comment.*
,
media.media_id, media.media_title, media.media_description, media.media_state,
media.comment_count, media.user_id, media.username, media.media_date,
user.*, user_profile.*, IF(user.username IS NULL, media.username, user.username) AS username,
category.*,
rating.media_id, rating.media_rating_id, rating.rating, rating.rating_date
FROM xengallery_comment AS comment
LEFT JOIN xengallery_media AS media ON
(media.media_id = comment.media_id)
LEFT JOIN xf_user AS user ON
(user.user_id = comment.user_id)
LEFT JOIN xf_user_profile AS user_profile ON
(user_profile.user_id = comment.user_id)
LEFT JOIN xengallery_category AS category ON
(category.xengallery_category_id = media.xengallery_category_id)
LEFT JOIN xengallery_rating AS rating ON
(rating.media_rating_id = comment.rating_id)
WHERE (comment.media_id = 206) AND (comment.comment_state IN ('visible'))
ORDER BY comment.comment_date DESC
Run Time: 0.001449
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | comment | ALL | | | | | 225 | Using where; Using filesort |
SIMPLE | media | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SIMPLE | user | eq_ref | PRIMARY | PRIMARY | 4 | realphot_xenforo.comment.user_id | 1 | |
SIMPLE | user_profile | eq_ref | PRIMARY | PRIMARY | 4 | realphot_xenforo.comment.user_id | 1 | |
SIMPLE | category | eq_ref | PRIMARY | PRIMARY | 4 | realphot_xenforo.media.xengallery_category_id | 1 | Using where |
SIMPLE | rating | eq_ref | PRIMARY | PRIMARY | 4 | realphot_xenforo.comment.rating_id | 1 | |
SELECT COUNT(*)
FROM xengallery_comment AS comment
WHERE (comment.media_id = 206) AND (comment.comment_state IN ('visible'))
Run Time: 0.000443
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | comment | ALL | | | | | 225 | Using where |
INSERT INTO `xf_session` (`session_id`, `session_data`, `expiry_date`) VALUES (?, ?, ?)
Params: a8df945ffd6b06ebacbfa22b91d60225, , 1656147937
Run Time: 0.000403
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, , , XenGallery_ControllerPublic_Media, View, valid, media_id=206, 1656144337,
Run Time: 0.000290
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', 'xengallery_view', 'xengallery_tab_links', 'PAGE_CONTAINER')
AND style_id = ?
AND language_id = ?
Params: 2, 1
Run Time: 0.001033
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_template_compiled | range | PRIMARY | PRIMARY | 60 | | 10 | Using where |
SELECT title, phrase_text
FROM xf_phrase_compiled
WHERE language_id = ?
AND title IN ('xengallery_media')
Params: 1
Run Time: 0.000153
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_phrase_compiled | const | PRIMARY | PRIMARY | 106 | const,const | 1 | |