Query time 0.00788
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.04075303,
"nested_loop": [
{
"read_sorted_file": {
"filesort": {
"sort_key": "a.position",
"table": {
"table_name": "a",
"access_type": "ALL",
"possible_keys": ["PRIMARY", "c_status"],
"loops": 1,
"rows": 10,
"cost": 0.01159965,
"filtered": 100,
"attached_condition": "a.product_id = 0 and a.`status` = 'A'"
}
}
}
},
{
"table": {
"table_name": "c",
"access_type": "ref",
"possible_keys": ["PRIMARY", "product_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["option_id"],
"ref": ["tmall.a.option_id"],
"loops": 10,
"rows": 1,
"cost": 0.00744492,
"filtered": 90.90908813,
"attached_condition": "c.product_id in (59,58,60,42,39,40,37,43,56,57,30,53,52,33,32,55,29,50,51,49)",
"using_index": true
}
},
{
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["option_id", "lang_code"],
"ref": ["tmall.a.option_id", "const"],
"loops": 9.090909091,
"rows": 1,
"cost": 0.015923218,
"filtered": 100,
"attached_condition": "trigcond(b.lang_code = 'en')"
}
}
]
}
}