SELECT cache_value FROM xf_permission_combination WHERE permission_combination_id = ?
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|---|---|---|---|---|---|---|---|
SIMPLE | xf_permission_combination | const | PRIMARY | PRIMARY | 4 | const | 1 |
SELECT user.* FROM xf_user AS user WHERE user.user_id = ?
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|---|---|---|---|---|---|---|---|
SIMPLE | user | const | PRIMARY | PRIMARY | 4 | const | 1 |
SELECT resource_category.* , permission.cache_value AS category_permission_cache FROM xf_resource_category AS resource_category LEFT JOIN xf_permission_cache_content AS permission ON (permission.permission_combination_id = 1 AND permission.content_type = 'resource_category' AND permission.content_id = resource_category.resource_category_id) ORDER BY resource_category.lft
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|---|---|---|---|---|---|---|---|
SIMPLE | resource_category | ALL | 5 | Using filesort | ||||
SIMPLE | permission | eq_ref | PRIMARY | PRIMARY | 35 | const,const,dembuon_vn_d58b.resource_category.resource_category_id | 1 | Using where |
SELECT COUNT(*) AS total_resources, SUM(resource.rating_sum) AS rating_sum, SUM(resource.rating_count) AS rating_count, MAX(resource.last_update) AS last_update FROM xf_resource AS resource WHERE (resource.user_id = 36201) AND (resource.resource_category_id IN (1, 2, 3, 4, 5)) AND (resource.resource_state IN ('visible'))
Select Type | Table | Type | Possible Keys | Key | Key Len | Ref | Rows | Extra |
---|---|---|---|---|---|---|---|---|
SIMPLE | resource | ref | category_last_update,category_rating_weighted,user_id_last_update | user_id_last_update | 4 | const | 21 | Using where |
INSERT INTO `xf_session` (`session_id`, `session_data`, `expiry_date`) VALUES (?, ?, ?)