Query time 0.00825
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.011847521,
"filesort": {
"sort_key": "a.position",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "c",
"access_type": "ref",
"possible_keys": ["PRIMARY", "product_id"],
"key": "product_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"ref": ["const"],
"loops": 1,
"rows": 2,
"cost": 0.00325828,
"filtered": 100
}
},
{
"table": {
"table_name": "a",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "c_status"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["option_id"],
"ref": ["tmall.c.option_id"],
"loops": 2,
"rows": 1,
"cost": 0.003662852,
"filtered": 100,
"attached_condition": "a.product_id = 0 and a.`status` = 'A'"
}
},
{
"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.c.option_id", "const"],
"loops": 2,
"rows": 1,
"cost": 0.003662852,
"filtered": 100,
"attached_condition": "trigcond(b.lang_code = 'en')"
}
}
]
}
}
}
}
Result
| cur_product_id |
option_id |
product_id |
company_id |
option_type |
regexp |
required |
multiupload |
allowed_extensions |
max_file_size |
missing_variants_handling |
status |
position |
value |
option_name |
internal_option_name |
option_text |
description |
inner_hint |
incorrect_message |
comment |
| 12 |
9 |
0 |
1 |
S |
|
N |
N |
|
0 |
M |
A |
0 |
|
Color |
Adidas pants color |
|
|
|
|
|
| 12 |
2 |
0 |
1 |
S |
|
N |
N |
|
0 |
M |
A |
20 |
|
Size |
Apparel Size |
Size |
|
|
|
|