Query time 0.00138
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "46.83"
},
"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": 18,
"rows_produced_per_join": 18,
"filtered": "100.00",
"cost_info": {
"read_cost": "21.63",
"eval_cost": "3.60",
"prefix_cost": "25.23",
"data_read_per_join": "20K"
},
"used_columns": [
"variant_id",
"color",
"position"
],
"attached_condition": "(`webmarco`.`cscart_product_feature_variants`.`variant_id` in (66123,64597,64666,65097,64062,64714,64753,65155,65095,65302,64668,60615,64544,66152,64598,64475,64539,64545))"
}
},
{
"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": [
"webmarco.cscart_product_feature_variants.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 18,
"filtered": "100.00",
"cost_info": {
"read_cost": "18.00",
"eval_cost": "3.60",
"prefix_cost": "46.83",
"data_read_per_join": "81K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
}
Result
variant_id |
position |
color |
variant |
65155 |
0 |
#ffffff |
Aluminium |
65302 |
0 |
#ffffff |
Baby Blue |
64753 |
0 |
#ffffff |
Beige |
64062 |
0 |
#000000 |
Black |
60615 |
0 |
|
Blue |
66152 |
0 |
#ffffff |
Dark Blue |
64714 |
0 |
|
Dark Red |
64545 |
0 |
|
Green |
64544 |
0 |
#ffffff |
Grey |
64597 |
0 |
#ffffff |
Long Sleeve |
66123 |
0 |
#ffffff |
Mint Green |
64539 |
0 |
#ff0000 |
Red |
64666 |
0 |
#ffffff |
Regular Fit |
64598 |
0 |
#ffffff |
Short Sleeve |
64668 |
0 |
#ffffff |
Skinny Fit |
64475 |
0 |
#ffffff |
White |
65097 |
0 |
#ffffff |
XL |
65095 |
0 |
#ffffff |
XS |