Query time 0.00213
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "a.position",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "c",
"access_type": "range",
"possible_keys": ["PRIMARY", "product_id"],
"key": "product_id",
"key_length": "3",
"used_key_parts": ["product_id"],
"rows": 32,
"filtered": 100,
"index_condition": "c.product_id in (2321,383,2415,6609,144,33306,1120,19567,5198,4020,4239,20665,2564,2506,4702,15454,45505,134,1438,32325,6054,3788,38145,2014,6212,4459,1754,2280,2283,38137,33178,4266)"
}
},
{
"table": {
"table_name": "a",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "c_status"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["option_id"],
"ref": ["dev_db.c.option_id"],
"rows": 1,
"filtered": 95.83333588,
"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": ["dev_db.c.option_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(b.lang_code = 'vi')"
}
}
]
}
}
}
}
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 |
1754 |
433 |
0 |
242 |
R |
|
N |
N |
|
0 |
M |
A |
0 |
|
Add-on |
Add-on |
|
|
|
|
|
2321 |
1226 |
0 |
126 |
C |
|
N |
N |
|
0 |
M |
A |
0 |
|
10018_Addon |
Khắc tên 50k - miễn phí hết tháng 10 |
|
|
|
|
|