Query time 0.00141
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "62.44"
},
"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": 24,
"rows_produced_per_join": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "28.84",
"eval_cost": "4.80",
"prefix_cost": "33.64",
"data_read_per_join": "27K"
},
"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))"
}
},
{
"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": 24,
"filtered": "100.00",
"cost_info": {
"read_cost": "24.00",
"eval_cost": "4.80",
"prefix_cost": "62.44",
"data_read_per_join": "108K"
},
"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 |
1197 |
50 |
|
XL |