Query time 0.01103
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "46.84"
},
"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": 29,
"rows_produced_per_join": 8,
"filtered": "30.01",
"cost_info": {
"read_cost": "29.00",
"eval_cost": "1.74",
"prefix_cost": "34.80",
"data_read_per_join": "6K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"value_int",
"lang_code"
],
"attached_condition": "((`jmj_test`.`jmj_product_features_values`.`feature_id` in (105,106,108,107,109,110,71,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": 0,
"filtered": "7.63",
"cost_info": {
"read_cost": "8.70",
"eval_cost": "0.13",
"prefix_cost": "45.24",
"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": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.66",
"eval_cost": "0.13",
"prefix_cost": "46.04",
"data_read_per_join": "292"
},
"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": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.66",
"eval_cost": "0.13",
"prefix_cost": "46.84",
"data_read_per_join": "2K"
},
"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 |
| 34 |
1691 |
255 |
1691 |
M |
#ffffff |
|
|
default |
| 36 |
1692 |
255 |
1692 |
M |
#ffffff |
|
|
default |
| 38 |
1693 |
255 |
1693 |
M |
#ffffff |
|
|
default |
| black |
2103 |
280 |
2103 |
S |
#000000 |
|
|
default |
| Cotton |
604 |
106 |
604 |
M |
#ffffff |
|
|
default |
| Elastane |
605 |
106 |
605 |
M |
#ffffff |
|
|
default |
| Flat Front |
455 |
71 |
455 |
M |
#ffffff |
|
|
default |
| Regular |
624 |
108 |
624 |
M |
#ffffff |
|
|
default |
| Satin |
634 |
110 |
634 |
S |
#ffffff |
|
|
default |
| Solid |
601 |
105 |
601 |
M |
#ffffff |
|
|
default |
| Fresh |
766 |
132 |
766 |
S |
#ffffff |
|
|
default |
| Mid |
626 |
109 |
626 |
S |
#ffffff |
|
|
default |
| Slim |
618 |
107 |
618 |
S |
#ffffff |
|
|
default |
| dimgray |
2104 |
280 |
2104 |
S |
#696969 |
|
|
default |
| silver |
2107 |
280 |
2107 |
S |
#c0c0c0 |
|
|
default |
| navy |
2113 |
280 |
2113 |
S |
#000080 |
|
|
default |
| olive |
2147 |
280 |
2147 |
S |
#808000 |
|
|
default |
| darkseagreen |
2153 |
280 |
2153 |
S |
#8fbc8f |
|
|
default |
| mintcream |
2164 |
280 |
2164 |
S |
#f5fffa |
|
|
default |
| khaki |
2179 |
280 |
2179 |
S |
#f0e68c |
|
|
default |
| saddlebrown |
2190 |
280 |
2190 |
S |
#8b4513 |
|
|
default |