Query time 0.00112
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "20.82"
},
"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": 8,
"rows_produced_per_join": 8,
"filtered": "100.00",
"cost_info": {
"read_cost": "9.62",
"eval_cost": "1.60",
"prefix_cost": "11.22",
"data_read_per_join": "9K"
},
"used_columns": [
"variant_id",
"color",
"position"
],
"attached_condition": "(`webmarco`.`cscart_product_feature_variants`.`variant_id` in (7726,64671,7132,64682,64539,64575,65303,64475))"
}
},
{
"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": 8,
"filtered": "100.00",
"cost_info": {
"read_cost": "8.00",
"eval_cost": "1.60",
"prefix_cost": "20.82",
"data_read_per_join": "36K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
}
Result
variant_id |
position |
color |
variant |
65303 |
0 |
#ffffff |
Angel Design |
64682 |
0 |
|
Blue Baby |
7132 |
0 |
|
Male |
64671 |
0 |
#ffffff |
Patterned |
64539 |
0 |
#ff0000 |
Red |
64475 |
0 |
#ffffff |
White |
64575 |
0 |
#ffff00 |
Yellow |
7726 |
80 |
#ffffff |
Cotton |