Query time 0.00089
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "16.81"
},
"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": 16,
"rows_produced_per_join": 16,
"filtered": "100.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_product_feature_variants`.`variant_id` in (2315,1607,1600,1559,1560,1788,1766,6360,1707,1596,1558,2986,1674,1777,1916,1783))",
"cost_info": {
"read_cost": "9.61",
"eval_cost": "1.60",
"prefix_cost": "11.21",
"data_read_per_join": "18K"
},
"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": 16,
"filtered": "100.00",
"cost_info": {
"read_cost": "4.00",
"eval_cost": "1.60",
"prefix_cost": "16.81",
"data_read_per_join": "48K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
}
Result
| variant_id |
position |
color |
variant |
| 1560 |
0 |
#000000 |
Black |
| 1600 |
0 |
#4a86e8 |
Blue |
| 1674 |
0 |
#783f04 |
Brown |
| 1788 |
0 |
#5f4b8b |
Cobalt Purple |
| 1783 |
0 |
#154584 |
Dark blue |
| 6360 |
0 |
|
Dark Green |
| 1766 |
0 |
#d4af37 |
Golden |
| 1596 |
0 |
#008000 |
Green |
| 1777 |
0 |
#6cc38f |
Min Green |
| 1707 |
0 |
#ff9900 |
Orange |
| 1916 |
0 |
#8e8e8e |
Platinum Silver |
| 2315 |
0 |
#cc0000 |
Red |
| 2986 |
0 |
#d9aa79 |
Sand Gold |
| 1607 |
0 |
#bdbdbd |
silver |
| 1559 |
0 |
#ffffff |
white |
| 1558 |
80 |
#f3b2dc |
Pink |