Query time 0.00437
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.04402162,
"nested_loop": [
{
"read_sorted_file": {
"filesort": {
"sort_key": "a.position",
"table": {
"table_name": "a",
"access_type": "ref",
"possible_keys": ["PRIMARY", "c_status"],
"key": "c_status",
"key_length": "6",
"used_key_parts": ["product_id", "status"],
"ref": ["const", "const"],
"loops": 1,
"rows": 10,
"cost": 0.01239952,
"filtered": 100,
"index_condition": "a.`status` = 'A'",
"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": ["lvshop.a.option_id", "const"],
"loops": 10,
"rows": 1,
"cost": 0.0097636,
"filtered": 100,
"attached_condition": "trigcond(b.lang_code = 'en')"
}
},
{
"table": {
"table_name": "cscart_ult_objects_sharing",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "159",
"used_key_parts": [
"share_object_id",
"share_company_id",
"share_object_type"
],
"ref": ["lvshop.a.option_id", "const", "const"],
"loops": 10,
"rows": 1,
"cost": 0.0097636,
"filtered": 100,
"attached_condition": "cscart_ult_objects_sharing.share_object_id = a.option_id and cscart_ult_objects_sharing.share_object_type = 'product_options'"
}
},
{
"table": {
"table_name": "c",
"access_type": "ref",
"possible_keys": ["PRIMARY", "product_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["option_id"],
"ref": ["lvshop.a.option_id"],
"loops": 10,
"rows": 2,
"cost": 0.0120949,
"filtered": 100,
"attached_condition": "c.product_id in (180,181,182,183,184,185,186,187,188,189,190,191,1,5,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24)"
}
}
]
}
}
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 |
|
|
|
|
|
| 7 |
10 |
0 |
1 |
S |
|
N |
N |
|
0 |
M |
A |
0 |
|
Color |
Adidas hoodie color |
|
|
|
|
|
| 11 |
1 |
0 |
1 |
S |
|
N |
N |
|
0 |
M |
A |
10 |
|
Color |
Monotone color |
Color |
|
|
|
|
| 7 |
2 |
0 |
1 |
S |
|
N |
N |
|
0 |
M |
A |
20 |
|
Size |
Apparel Size |
Size |
|
|
|
|
| 11 |
2 |
0 |
1 |
S |
|
N |
N |
|
0 |
M |
A |
20 |
|
Size |
Apparel Size |
Size |
|
|
|
|
| 12 |
2 |
0 |
1 |
S |
|
N |
N |
|
0 |
M |
A |
20 |
|
Size |
Apparel Size |
Size |
|
|
|
|
| 15 |
2 |
0 |
1 |
S |
|
N |
N |
|
0 |
M |
A |
20 |
|
Size |
Apparel Size |
Size |
|
|
|
|