Query time 0.00339
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "22.32"
},
"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": 13,
"rows_produced_per_join": 4,
"filtered": "36.88",
"cost_info": {
"read_cost": "13.00",
"eval_cost": "0.96",
"prefix_cost": "15.60",
"data_read_per_join": "3K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"value_int",
"lang_code"
],
"attached_condition": "((`jmj_test`.`jmj_product_features_values`.`feature_id` in (31,389,390,391,392,393,394,395,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": "8.38",
"cost_info": {
"read_cost": "4.79",
"eval_cost": "0.08",
"prefix_cost": "21.35",
"data_read_per_join": "636"
},
"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.40",
"eval_cost": "0.08",
"prefix_cost": "21.84",
"data_read_per_join": "176"
},
"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.40",
"eval_cost": "0.08",
"prefix_cost": "22.32",
"data_read_per_join": "1K"
},
"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 |
| Casual |
2968 |
393 |
2968 |
M |
#ffffff |
|
|
default |
| Cotton |
2951 |
390 |
2951 |
M |
#ffffff |
|
|
default |
| Drawstring |
2965 |
392 |
2965 |
S |
#ffffff |
|
|
default |
| Elastane |
2953 |
390 |
2953 |
M |
#ffffff |
|
|
default |
| Knitted |
2970 |
394 |
2970 |
S |
#ffffff |
|
|
default |
| Regular |
2961 |
391 |
2961 |
S |
#ffffff |
|
|
default |
| Single |
2972 |
395 |
2972 |
S |
#ffffff |
|
|
default |
| Solid |
2948 |
389 |
2948 |
M |
#ffffff |
|
|
default |
| Fresh |
766 |
132 |
766 |
S |
#ffffff |
|
|
default |
| S |
1699 |
255 |
1699 |
M |
#ffffff |
|
|
default |
| M |
1700 |
255 |
1700 |
M |
#ffffff |
|
|
default |
| L |
1701 |
255 |
1701 |
M |
#ffffff |
|
|
default |
| XL |
1703 |
255 |
1703 |
M |
#ffffff |
|
|
default |
| XXL |
1704 |
255 |
1704 |
M |
#ffffff |
|
|
default |
| Assemble |
3247 |
31 |
3247 |
E |
#ffffff |
|
|
default |
| lightpink |
2209 |
280 |
2209 |
S |
#ffb6c1 |
|
|
default |