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.001769
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_data_registry | ALL | PRIMARY | | | | 24 | Using where |
SELECT cache_value
FROM xf_permission_combination
WHERE permission_combination_id = ?
Params: 1
Run Time: 0.000633
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_permission_combination | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SELECT data_value
FROM xf_data_registry
WHERE data_key = ?
Params: userAlbums
Run Time: 0.000344
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_data_registry | const | PRIMARY | PRIMARY | 27 | const | 1 | |
SELECT album.*
,
user.*,
image_data.data_id AS image_data_id, image_data.file_hash AS image_file_hash
FROM xfr_useralbum AS album
LEFT JOIN xf_user AS user ON
(user.user_id = album.user_id)
LEFT JOIN xfr_useralbum_image AS image ON image.image_id = album.last_image_id
LEFT JOIN xfr_useralbum_image_data AS image_data ON image_data.data_id = image.data_id
WHERE album.moderation = 0 AND (album.album_type = 'public' OR album.album_type = 'global') AND album.last_image_date > 0
ORDER BY album.last_image_date DESC, album.createdate DESC
LIMIT 12
Run Time: 0.001797
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | album | ALL | | | | | 3 | Using where; Using temporary; Using filesort |
SIMPLE | user | ALL | | | | | 12971 | Using where; Using join buffer (flat, BNL join) |
SIMPLE | image | eq_ref | PRIMARY | PRIMARY | 4 | forum.album.last_image_id | 1 | |
SIMPLE | image_data | eq_ref | PRIMARY | PRIMARY | 4 | forum.image.data_id | 1 | Using where |
SELECT
comment.*, user.username, user.avatar_date, user.avatar_width, user.avatar_height, user.gravatar,
album.title, album.album_id
FROM xfr_useralbum_image_comment AS comment
LEFT JOIN xf_user AS user
ON (user.user_id = comment.user_id)
LEFT JOIN xfr_useralbum_image AS image
ON (image.image_id = comment.image_id)
LEFT JOIN xfr_useralbum AS album
ON (album.album_id = image.album_id)
WHERE album.album_type = 'public' AND moderation = 0
ORDER BY comment.comment_date DESC
LIMIT 10
Run Time: 0.001266
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | comment | ALL | image_id_comment_date | | | | 1 | Using temporary; Using filesort |
SIMPLE | image | eq_ref | PRIMARY,album_id_date | PRIMARY | 4 | forum.comment.image_id | 1 | |
SIMPLE | album | eq_ref | PRIMARY | PRIMARY | 4 | forum.image.album_id | 1 | Using where |
SIMPLE | user | ALL | | | | | 12971 | Using where; Using join buffer (flat, BNL join) |
SELECT album.*
,
user.*,
image_data.data_id AS image_data_id, image_data.file_hash AS image_file_hash
FROM xfr_useralbum AS album
LEFT JOIN xf_user AS user ON
(user.user_id = album.user_id)
LEFT JOIN xfr_useralbum_image AS image ON image.image_id = album.last_image_id
LEFT JOIN xfr_useralbum_image_data AS image_data ON image_data.data_id = image.data_id
WHERE album.moderation = 0 AND (album.album_type = 'public' OR album.album_type = 'global') AND album.last_image_date > 0
ORDER BY album.likes DESC
LIMIT 5
Run Time: 0.001276
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | album | ALL | | | | | 3 | Using where; Using temporary; Using filesort |
SIMPLE | user | ALL | | | | | 12971 | Using where; Using join buffer (flat, BNL join) |
SIMPLE | image | eq_ref | PRIMARY | PRIMARY | 4 | forum.album.last_image_id | 1 | |
SIMPLE | image_data | eq_ref | PRIMARY | PRIMARY | 4 | forum.image.data_id | 1 | Using where |
INSERT INTO `xf_session` (`session_id`, `session_data`, `expiry_date`) VALUES (?, ?, ?)
Params: e8c5d467a4a8be6a926a2af90f1da014, , 1714064645
Run Time: 0.000298
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, , , XfRu_UserAlbums_ControllerPublic_Albums, Index, valid, , 1714061045,
Run Time: 0.000139
SELECT count(*)
FROM dark_taigachat_activity AS activity
LEFT JOIN xf_user AS user ON
(user.user_id = activity.user_id)
WHERE activity.date > UNIX_TIMESTAMP()-150
AND user.visible=1
Run Time: 0.000199
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | | | | | | | | Impossible WHERE noticed after reading const tables |