Query time 0.00111
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "83.25"
},
"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": 32,
"rows_produced_per_join": 32,
"filtered": "100.00",
"cost_info": {
"read_cost": "38.45",
"eval_cost": "6.40",
"prefix_cost": "44.85",
"data_read_per_join": "36K"
},
"used_columns": [
"variant_id",
"color",
"position"
],
"attached_condition": "(`webmarco`.`cscart_product_feature_variants`.`variant_id` in (1465,64709,7538,1542,7132,64694,64236,64062,64544,38313,8187,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": 32,
"filtered": "100.00",
"cost_info": {
"read_cost": "32.00",
"eval_cost": "6.40",
"prefix_cost": "83.25",
"data_read_per_join": "144K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
}
Result
variant_id |
position |
color |
variant |
64062 |
0 |
#000000 |
Black |
7393 |
0 |
#1155cc |
Blue |
7133 |
0 |
|
Female |
1491 |
0 |
#d4af37 |
Gold |
1479 |
0 |
#379705 |
Green |
1481 |
0 |
#666666 |
Grey |
64544 |
0 |
#ffffff |
Grey |
1486 |
0 |
#4a86e8 |
Light Blue |
64709 |
0 |
|
Light Brown |
64694 |
0 |
#ffffff |
Light Pink |
7132 |
0 |
|
Male |
1542 |
0 |
|
New |
1465 |
0 |
#ffffff |
One Size |
8187 |
0 |
#e469a6 |
Pink |
64236 |
0 |
#ffffff |
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 |
7538 |
70 |
#ffffff |
Printed |