Query time 0.00107
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "22.06"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_product_feature_variants",
"access_type": "range",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"rows_examined_per_scan": 21,
"rows_produced_per_join": 21,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_feature_variants`.`variant_id` in (1719,1666,1613,1665,1615,1611,1612,1614,1792,1667,1793,2232,2238,2244,2424,3476,1945,3486,9221,9219,9493))",
"cost_info": {
"read_cost": "12.61",
"eval_cost": "2.10",
"prefix_cost": "14.71",
"data_read_per_join": "23K"
},
"used_columns": [
"variant_id",
"color",
"position"
]
}
},
{
"table": {
"table_name": "cscart_product_feature_variant_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"softwarepirmam_hewadelivard_cscart_4.cscart_product_feature_variants.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 21,
"filtered": "100.00",
"cost_info": {
"read_cost": "5.25",
"eval_cost": "2.10",
"prefix_cost": "22.06",
"data_read_per_join": "63K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
}
Result
| variant_id |
position |
color |
variant |
| 3486 |
0 |
|
1.32" |
| 2232 |
0 |
|
1.43" |
| 1719 |
0 |
|
1.74" |
| 3476 |
0 |
|
1.82" |
| 2244 |
0 |
|
1.96" |
| 9221 |
0 |
|
1.96" AMOLED |
| 2424 |
0 |
|
2" |
| 2238 |
0 |
|
2.07" |
| 9493 |
0 |
#ffffff |
39mm |
| 1612 |
0 |
#ffffff |
40mm |
| 1614 |
0 |
#ffffff |
42mm |
| 1792 |
0 |
#ffffff |
43" |
| 1611 |
0 |
#ffffff |
44mm |
| 1613 |
0 |
#ffffff |
46mm |
| 1793 |
0 |
#ffffff |
47" |
| 1615 |
0 |
#ffffff |
49mm |
| 1665 |
0 |
#ffffff |
Apple |
| 1945 |
0 |
#ffffff |
Huawei |
| 9219 |
0 |
|
Nothing |
| 1667 |
0 |
#ffffff |
Samsung |
| 1666 |
0 |
#ffffff |
Xiaomi |