Query time 0.01785
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "cscart_pages.position, cscart_page_descriptions.`page`",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "cscart_tag_links",
"access_type": "ref",
"possible_keys": ["PRIMARY", "tag_id", "ids"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["object_type"],
"ref": ["const"],
"rows": 1,
"filtered": 100,
"attached_condition": "cscart_tag_links.object_type = 'A'",
"using_index": true
}
},
{
"table": {
"table_name": "cscart_pages",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["page_id"],
"ref": ["cscart.cscart_tag_links.object_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "cscart_pages.`status` = 'A' and cscart_pages.page_type in ('T','L','B','F') and (cscart_pages.usergroup_ids = '' or find_in_set(0,cscart_pages.usergroup_ids) or find_in_set(1,cscart_pages.usergroup_ids)) and (cscart_pages.use_avail_period = 'N' or cscart_pages.use_avail_period = 'Y' and cscart_pages.avail_from_timestamp <= 1776201932 and (cscart_pages.avail_till_timestamp >= 1776201932 or cscart_pages.avail_till_timestamp = 0))"
}
},
{
"table": {
"table_name": "cscart_tags",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "tag"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["tag_id"],
"ref": ["cscart.cscart_tag_links.tag_id"],
"rowid_filter": {
"range": {
"key": "tag",
"used_key_parts": ["tag"]
},
"rows": 1,
"selectivity_pct": 33.33333333
},
"rows": 1,
"filtered": 33.33333206,
"attached_condition": "cscart_tags.tag = 'Sport' and cscart_tags.`status` = 'A'"
}
},
{
"table": {
"table_name": "cscart_page_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["page_id", "lang_code"],
"ref": ["cscart.cscart_tag_links.object_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_page_descriptions.lang_code = 'ru')"
}
}
]
}
}
}
}