SELECT cache_value
FROM xf_permission_combination
WHERE permission_combination_id = ?
Params: 1
Run Time: 0.000376
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_permission_combination | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SELECT EWRmedio_media.*, EWRmedio_categories.*, EWRmedio_services.*, xf_user.*, EWRmedio_media.service_value2 AS service_value2, EWRmedio_watch.media_id AS media_is_watched,
IF(xf_user.username IS NULL, EWRmedio_media.username, xf_user.username) AS username, xf_liked_content.like_date
FROM EWRmedio_media
LEFT JOIN EWRmedio_categories ON (EWRmedio_categories.category_id = EWRmedio_media.category_id)
LEFT JOIN EWRmedio_services ON (EWRmedio_services.service_id = EWRmedio_media.service_id)
LEFT JOIN EWRmedio_watch ON (EWRmedio_media.media_id = EWRmedio_watch.media_id AND EWRmedio_watch.user_id = ?)
LEFT JOIN xf_user ON (xf_user.user_id = EWRmedio_media.user_id)
LEFT JOIN xf_liked_content
ON (xf_liked_content.content_type = 'media'
AND xf_liked_content.content_id = EWRmedio_media.media_id
AND xf_liked_content.like_user_id = 0)
WHERE EWRmedio_media.media_id = ?
Params: 0, 11
Run Time: 0.001203
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | EWRmedio_media | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SIMPLE | EWRmedio_categories | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SIMPLE | EWRmedio_services | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SIMPLE | EWRmedio_watch | const | PRIMARY,media_id_email_subscribe | PRIMARY | 8 | const,const | 0 | unique row not found |
SIMPLE | xf_user | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SIMPLE | xf_liked_content | const | content_type_id_like_user_id | content_type_id_like_user_id | 85 | const,const,const | 0 | unique row not found |
SELECT COUNT(*) AS total
FROM EWRmedio_comments
WHERE media_id = 11
Run Time: 0.000533
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | EWRmedio_comments | ref | media_id | media_id | 4 | const | 1 | Using index |
SELECT *
FROM EWRmedio_categories
WHERE category_id = ?
Params: 1
Run Time: 0.000381
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | EWRmedio_categories | const | PRIMARY | PRIMARY | 4 | const | 1 | |
UPDATE EWRmedio_media
SET media_views = media_views+1
WHERE media_id = ?
Params: 11
Run Time: 0.003350
SELECT EWRmedio_media.*, EWRmedio_categories.*, EWRmedio_services.*, xf_user.*, EWRmedio_media.service_value2 AS service_value2, EWRmedio_watch.media_id AS media_is_watched,
IF(xf_user.username IS NULL, EWRmedio_media.username, xf_user.username) AS username, xf_liked_content.like_date
FROM EWRmedio_media
LEFT JOIN EWRmedio_categories ON (EWRmedio_categories.category_id = EWRmedio_media.category_id)
LEFT JOIN EWRmedio_services ON (EWRmedio_services.service_id = EWRmedio_media.service_id)
LEFT JOIN EWRmedio_watch ON (EWRmedio_media.media_id = EWRmedio_watch.media_id AND EWRmedio_watch.user_id = ?)
LEFT JOIN xf_user ON (xf_user.user_id = EWRmedio_media.user_id)
LEFT JOIN xf_liked_content
ON (xf_liked_content.content_type = 'media'
AND xf_liked_content.content_id = EWRmedio_media.media_id
AND xf_liked_content.like_user_id = 0)
WHERE EWRmedio_media.media_id = ?
Params: 0, 11
Run Time: 0.001186
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | EWRmedio_media | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SIMPLE | EWRmedio_categories | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SIMPLE | EWRmedio_services | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SIMPLE | EWRmedio_watch | const | PRIMARY,media_id_email_subscribe | PRIMARY | 8 | const,const | 0 | unique row not found |
SIMPLE | xf_user | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SIMPLE | xf_liked_content | const | content_type_id_like_user_id | content_type_id_like_user_id | 85 | const,const,const | 0 | unique row not found |
begin
Run Time: 0.000099
SELECT content_type, field_value
FROM xf_content_type_field
WHERE field_name = 'search_handler_class'
Run Time: 0.000292
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_content_type_field | ref | field_name | field_name | 152 | const | 4 | Using index condition |
commit
Run Time: 0.000230
SELECT EWRmedio_keywords.*, EWRmedio_keylinks.*
FROM EWRmedio_keywords
LEFT JOIN EWRmedio_keylinks ON (EWRmedio_keylinks.keyword_id = EWRmedio_keywords.keyword_id)
WHERE EWRmedio_keylinks.media_id = ?
ORDER BY EWRmedio_keywords.keyword_text ASC
Params: 11
Run Time: 0.000531
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | EWRmedio_keywords | index | PRIMARY | keyword_text | 767 | | 1 | Using index |
SIMPLE | EWRmedio_keylinks | eq_ref | UNIQUE,media_id | UNIQUE | 8 | smsmast_xenforo.EWRmedio_keywords.keyword_id,const | 1 | |
SELECT *
FROM EWRmedio_playlists
WHERE user_id = ?
ORDER BY playlist_id DESC
Params: 0
Run Time: 0.000400
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | EWRmedio_playlists | ref | user_id | user_id | 4 | const | 1 | Using where |
SELECT EWRmedio_comments.*, xf_user.*, xf_user.register_date AS userValid,
IF(NOT ISNULL(xf_user.user_id), xf_user.username, EWRmedio_comments.username) AS username
FROM EWRmedio_comments
LEFT JOIN xf_user ON (xf_user.user_id = EWRmedio_comments.user_id)
WHERE EWRmedio_comments.media_id = ?
ORDER BY EWRmedio_comments.comment_date DESC
LIMIT ?, ?
Params: 11, 0, 5
Run Time: 0.000693
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | EWRmedio_comments | ref | media_id | media_id | 4 | const | 1 | Using where; Using filesort |
SIMPLE | xf_user | eq_ref | PRIMARY | PRIMARY | 4 | smsmast_xenforo.EWRmedio_comments.user_id | 1 | |
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, 750809211, 750809211, EWRmedio_ControllerPublic_Media_Media, Index, valid, media_id=11, 1614374493
Run Time: 0.003016
SELECT session_activity.*
,
user.*,
user_profile.*,
user_option.*
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 > 1614373593)
ORDER BY session_activity.view_date DESC
Run Time: 0.001635
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | session_activity | ALL | view_date | | | | 334 | Using where; Using filesort |
SIMPLE | user | eq_ref | PRIMARY | PRIMARY | 4 | smsmast_xenforo.session_activity.user_id | 1 | |
SIMPLE | user_profile | eq_ref | PRIMARY | PRIMARY | 4 | smsmast_xenforo.user.user_id | 1 | Using where |
SIMPLE | user_option | eq_ref | PRIMARY | PRIMARY | 4 | smsmast_xenforo.user.user_id | 1 | Using where |
SELECT title, phrase_text
FROM xf_phrase_compiled
WHERE language_id = ?
AND title IN ('home', 'dark_shoutbox', 'media')
Params: 1
Run Time: 0.000371
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_phrase_compiled | range | PRIMARY | PRIMARY | 231 | | 3 | Using where |