Query time 0.01093
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.00673029,
"filesort": {
"sort_key": "tmall_pages.position, tmall_page_descriptions.`page`",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "tmall_tag_links",
"access_type": "ref",
"possible_keys": ["PRIMARY", "tag_id", "ids"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["object_type"],
"ref": ["const"],
"loops": 1,
"rows": 1,
"cost": 0.000928812,
"filtered": 100,
"attached_condition": "tmall_tag_links.object_type = 'A'",
"using_index": true
}
},
{
"table": {
"table_name": "tmall_pages",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["page_id"],
"ref": ["tmall.tmall_tag_links.object_id"],
"loops": 1,
"rows": 1,
"cost": 0.001933826,
"filtered": 100,
"attached_condition": "tmall_pages.`status` = 'A' and tmall_pages.page_type in ('T','L') and (tmall_pages.usergroup_ids = '' or find_in_set(0,tmall_pages.usergroup_ids) or find_in_set(1,tmall_pages.usergroup_ids)) and (tmall_pages.use_avail_period = 'N' or tmall_pages.use_avail_period = 'Y' and tmall_pages.avail_from_timestamp <= 1765540793 and (tmall_pages.avail_till_timestamp >= 1765540793 or tmall_pages.avail_till_timestamp = 0))"
}
},
{
"table": {
"table_name": "tmall_tags",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "tag"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["tag_id"],
"ref": ["tmall.tmall_tag_links.tag_id"],
"loops": 1,
"rows": 1,
"cost": 0.001933826,
"filtered": 25,
"attached_condition": "tmall_tags.tag = 'Books' and tmall_tags.`status` = 'A'"
}
},
{
"table": {
"table_name": "tmall_page_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["page_id", "lang_code"],
"ref": ["tmall.tmall_tag_links.object_id", "const"],
"loops": 1,
"rows": 1,
"cost": 0.001933826,
"filtered": 100,
"attached_condition": "trigcond(tmall_page_descriptions.lang_code = 'en')"
}
}
]
}
}
}
}