Query time 0.00088
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "9.46"
},
"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": 9,
"rows_produced_per_join": 9,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_feature_variants`.`variant_id` in (1561,5176,1686,1562,1563,1687,1888,5498,1565))",
"cost_info": {
"read_cost": "5.41",
"eval_cost": "0.90",
"prefix_cost": "6.31",
"data_read_per_join": "10K"
},
"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": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.25",
"eval_cost": "0.90",
"prefix_cost": "9.46",
"data_read_per_join": "27K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
}
Result
| variant_id |
position |
color |
variant |
| 5176 |
0 |
|
ADATA |
| 5498 |
0 |
|
San Disk |
| 1888 |
5 |
|
16GB |
| 1686 |
6 |
#ffffff |
32GB |
| 1687 |
7 |
#ffffff |
64GB |
| 1561 |
10 |
#ffffff |
128GB |
| 1562 |
20 |
#ffffff |
256GB |
| 1563 |
30 |
#ffffff |
512GB |
| 1565 |
50 |
#ffffff |
2TB |