Query time 0.00154
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "65.04"
},
"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": 25,
"rows_produced_per_join": 25,
"filtered": "100.00",
"cost_info": {
"read_cost": "30.04",
"eval_cost": "5.00",
"prefix_cost": "35.04",
"data_read_per_join": "28K"
},
"used_columns": [
"variant_id",
"color",
"position"
],
"attached_condition": "(`webmarco`.`cscart_product_feature_variants`.`variant_id` in (1465,38313,8187,1542,7133,1193,8100,1477,7729,7727,37948,1491,1475,1486,37876,7393,1482,7539,1195,1194,1481,1492,1479,1197,8101))"
}
},
{
"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": 25,
"filtered": "100.00",
"cost_info": {
"read_cost": "25.00",
"eval_cost": "5.00",
"prefix_cost": "65.04",
"data_read_per_join": "112K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
}
Result
variant_id |
position |
color |
variant |
7393 |
0 |
#1155cc |
Blue |
7133 |
0 |
|
Female |
1491 |
0 |
#d4af37 |
Gold |
1479 |
0 |
#379705 |
Green |
1481 |
0 |
#666666 |
Grey |
1486 |
0 |
#4a86e8 |
Light Blue |
1542 |
0 |
|
New |
1465 |
0 |
#ffffff |
One Size |
8187 |
0 |
#e469a6 |
Pink |
37876 |
0 |
#e6b8af |
Powder Pink |
1477 |
0 |
#ff0000 |
Red |
1193 |
0 |
#ffffff |
S |
1492 |
0 |
#c0c0c0 |
Silver |
1475 |
0 |
#ffffff |
White |
1482 |
0 |
#ffff00 |
Yellow |
7539 |
11 |
#ffffff |
Without Pattern |
7727 |
12 |
#ffffff |
Embroidered |
37948 |
18 |
|
Satin |
7729 |
20 |
#ffffff |
Georgette |
1195 |
20 |
|
M |
38313 |
21 |
#ffffff |
Tulle |
8100 |
30 |
#ffffff |
Glitter |
1194 |
30 |
|
L |
8101 |
40 |
#ffffff |
Crepe |
1197 |
50 |
|
XL |