SELECT cache_value
FROM xf_permission_combination
WHERE permission_combination_id = ?
Params: 1
Run Time: 0.000102
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | xf_permission_combination | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SELECT item.*
,
user.*, user_profile.*, IF(user.username IS NULL, item.username, user.username) AS username,
0 AS is_watched,
0 AS has_rated
FROM xf_nflj_showcase_item AS item
LEFT JOIN xf_user AS user ON
(user.user_id = item.user_id)
LEFT JOIN xf_user_profile AS user_profile ON
(user_profile.user_id = item.user_id)
WHERE item.item_id = ?
Params: 299
Run Time: 0.000679
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | item | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SIMPLE | user | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SIMPLE | user_profile | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SELECT category.*
,
permission.cache_value AS category_permission_cache
FROM xf_nflj_showcase_category AS category
LEFT JOIN xf_permission_cache_content AS permission
ON (permission.permission_combination_id = 1
AND permission.content_type = 'showcase_category'
AND permission.content_id = category.category_id)
WHERE category.category_id = ?
Params: 99
Run Time: 0.000122
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | category | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SIMPLE | permission | const | PRIMARY | PRIMARY | 35 | const,const,const | 1 | |
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 (299)
ORDER BY attachment.content_id, attachment.attach_date
Params: showcase_item
Run Time: 0.000084
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 | foromtb_www.attachment.data_id | 1 | |
INSERT DELAYED INTO xf_nflj_showcase_item_view
(item_id)
VALUES
(?)
Params: 299
Run Time: 0.000108
SELECT rr.*
,
user.*, user_profile.*, 0 AS like_date
FROM xf_nflj_showcase_rate_review AS rr
INNER JOIN xf_user AS user ON
(user.user_id = rr.user_id)
INNER JOIN xf_user_profile AS user_profile ON
(user_profile.user_id = rr.user_id)
WHERE (rr.item_id = 299) AND (rr.rate_review_state IN ('visible')) AND (rr.is_review = 1)
ORDER BY rr.rating DESC, rr.rate_review_date DESC
LIMIT 10
Run Time: 0.000623
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | rr | ref | unique_rating,item_id | item_id | 4 | const | 1 | Using where; Using filesort |
SIMPLE | user_profile | eq_ref | PRIMARY | PRIMARY | 4 | foromtb_www.rr.user_id | 1 | |
SIMPLE | user | eq_ref | PRIMARY | PRIMARY | 4 | foromtb_www.rr.user_id | 1 | |
SELECT COUNT(*)
FROM xf_nflj_showcase_rate_review AS rr
WHERE (rr.item_id = 299) AND (rr.rate_review_state IN ('visible')) AND (rr.is_review = 1)
Run Time: 0.000042
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | rr | ref | item_id | item_id | 4 | const | 1 | Using where |
SELECT item.*
,
category.*,
user.*, user_profile.*, IF(user.username IS NULL, item.username, user.username) AS username,
permission.cache_value AS category_permission_cache
FROM xf_nflj_showcase_item AS item
LEFT JOIN xf_nflj_showcase_category AS category ON
(category.category_id = item.category_id)
LEFT JOIN xf_user AS user ON
(user.user_id = item.user_id)
LEFT JOIN xf_user_profile AS user_profile ON
(user_profile.user_id = item.user_id)
LEFT JOIN xf_permission_cache_content AS permission
ON (permission.permission_combination_id = 1
AND permission.content_type = 'showcase_category'
AND permission.content_id = item.category_id)
WHERE (item.user_id = 91638) AND (item.item_id <> 299) AND (item.item_state = 'visible')
ORDER BY item.rating_avg DESC, item.rating_count DESC, item.likes DESC, item.view_count DESC
LIMIT 5
Run Time: 0.001231
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | item | range | PRIMARY,userID,user_id_last_update | userID | 8 | | 32 | Using index condition; Using where; Using filesort |
SIMPLE | category | eq_ref | PRIMARY | PRIMARY | 4 | foromtb_www.item.category_id | 1 | |
SIMPLE | user | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SIMPLE | user_profile | const | PRIMARY | PRIMARY | 4 | const | 1 | |
SIMPLE | permission | eq_ref | PRIMARY | PRIMARY | 35 | const,const,foromtb_www.item.category_id | 1 | Using where |
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 (147, 245, 244, 153, 182)
ORDER BY attachment.content_id, attachment.attach_date
Params: showcase_item
Run Time: 0.000088
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|
SIMPLE | attachment | range | content_type_id_date | content_type_id_date | 31 | | 5 | Using index condition |
SIMPLE | data | eq_ref | PRIMARY | PRIMARY | 4 | foromtb_www.attachment.data_id | 1 | |
INSERT INTO `xf_session` (`session_id`, `session_data`, `expiry_date`) VALUES (?, ?, ?)
Params: 879b01f700f2d2b008555ccbccaa9c94, a:8:{s:12:"sessionStart";i:1714219619;s:2:"ip";s:4:""