Query time 0.01721
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "46.48"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "jmj_product_features_values",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"variant_id",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "product_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 25,
"rows_produced_per_join": 11,
"filtered": "46.85",
"cost_info": {
"read_cost": "25.00",
"eval_cost": "2.34",
"prefix_cost": "30.00",
"data_read_per_join": "9K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"value_int",
"lang_code"
],
"attached_condition": "((`jmj_test`.`jmj_product_features_values`.`feature_id` in (31,370,371,372,374,373,375,376,378,379,380,377,255,280,132)) and (`jmj_test`.`jmj_product_features_values`.`lang_code` = 'en'))"
}
},
{
"table": {
"table_name": "jmj_product_feature_variants",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"feature_id"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"ref": [
"jmj_test.jmj_product_features_values.variant_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "8.63",
"cost_info": {
"read_cost": "11.71",
"eval_cost": "0.20",
"prefix_cost": "44.05",
"data_read_per_join": "1K"
},
"used_columns": [
"variant_id",
"feature_id",
"color",
"position",
"abt__ut2_color_style",
"abt__ut2_multicolor"
],
"attached_condition": "(`jmj_test`.`jmj_product_feature_variants`.`feature_id` = `jmj_test`.`jmj_product_features_values`.`feature_id`)"
}
},
{
"table": {
"table_name": "jmj_product_features",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"jmj_test.jmj_product_features_values.feature_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.01",
"eval_cost": "0.20",
"prefix_cost": "45.27",
"data_read_per_join": "444"
},
"used_columns": [
"feature_id",
"feature_type"
]
}
},
{
"table": {
"table_name": "jmj_product_feature_variant_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"jmj_test.jmj_product_features_values.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.01",
"eval_cost": "0.20",
"prefix_cost": "46.48",
"data_read_per_join": "3K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
}
]
}
}
}
}
Result
| variant |
variant_id |
feature_id |
selected |
feature_type |
color |
value_int |
abt__ut2_multicolor |
abt__ut2_color_style |
| 28 |
1688 |
255 |
1688 |
M |
#ffffff |
|
|
default |
| 30 |
1689 |
255 |
1689 |
M |
#ffffff |
|
|
default |
| 32 |
1690 |
255 |
1690 |
M |
#ffffff |
|
|
default |
| Cotton |
2838 |
371 |
2838 |
M |
#ffffff |
|
|
default |
| Dyed |
2831 |
370 |
2831 |
M |
#ffffff |
|
|
default |
| Elastane |
2839 |
371 |
2839 |
M |
#ffffff |
|
|
default |
| Polyester |
2841 |
371 |
2841 |
M |
#ffffff |
|
|
default |
| Satin |
2872 |
377 |
2872 |
S |
#ffffff |
|
|
default |
| Stone |
2880 |
378 |
2880 |
S |
#ffffff |
|
|
default |
| Fresh |
766 |
132 |
766 |
S |
#ffffff |
|
|
default |
| Heavy |
2847 |
373 |
2847 |
M |
#ffffff |
|
|
default |
| Stretchable |
2885 |
380 |
2885 |
S |
#ffffff |
|
|
default |
| Ankle |
2865 |
376 |
2865 |
S |
#ffffff |
|
|
default |
| Mid |
2883 |
379 |
2883 |
S |
#ffffff |
|
|
default |
| Light |
2853 |
374 |
2853 |
M |
#ffffff |
|
|
default |
| No |
2850 |
372 |
2850 |
M |
#ffffff |
|
|
default |
| Skinny |
2860 |
375 |
2860 |
S |
#ffffff |
|
|
default |
| lightskyblue |
2122 |
280 |
2122 |
S |
#87cefa |
|
|
default |
| Clothica |
3149 |
31 |
3149 |
E |
#ffffff |
|
|
default |