Query time 0.01905
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "27.21"
},
"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": 16,
"rows_produced_per_join": 5,
"filtered": "35.44",
"cost_info": {
"read_cost": "16.00",
"eval_cost": "1.13",
"prefix_cost": "19.20",
"data_read_per_join": "4K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"value_int",
"lang_code"
],
"attached_condition": "((`jmj_test`.`jmj_product_features_values`.`feature_id` in (31,420,421,422,423,424,425,426,427,428,429,430,280,431,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.87",
"cost_info": {
"read_cost": "5.67",
"eval_cost": "0.10",
"prefix_cost": "26.00",
"data_read_per_join": "797"
},
"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.50",
"eval_cost": "0.10",
"prefix_cost": "26.61",
"data_read_per_join": "221"
},
"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.50",
"eval_cost": "0.10",
"prefix_cost": "27.21",
"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 |
| 22 |
3220 |
431 |
3220 |
M |
#ffffff |
|
|
default |
| 24 |
3221 |
431 |
3221 |
M |
#ffffff |
|
|
default |
| 26 |
3222 |
431 |
3222 |
M |
#ffffff |
|
|
default |
| 28 |
3223 |
431 |
3223 |
M |
#ffffff |
|
|
default |
| 30 |
3224 |
431 |
3224 |
M |
#ffffff |
|
|
default |
| black |
2103 |
280 |
2103 |
S |
#000000 |
|
|
default |
| Cotton |
3168 |
421 |
3168 |
M |
#ffffff |
|
|
default |
| Light |
3184 |
424 |
3184 |
M |
#ffffff |
|
|
default |
| Modal |
3170 |
421 |
3170 |
M |
#ffffff |
|
|
default |
| Plain |
3200 |
427 |
3200 |
S |
#ffffff |
|
|
default |
| Plain |
3214 |
430 |
3214 |
S |
#ffffff |
|
|
default |
| Printed |
3164 |
420 |
3164 |
M |
#ffffff |
|
|
default |
| Fresh |
766 |
132 |
766 |
S |
#ffffff |
|
|
default |
| Full |
3194 |
426 |
3194 |
S |
#ffffff |
|
|
default |
| High |
3204 |
428 |
3204 |
S |
#ffffff |
|
|
default |
| Stretchable |
3207 |
429 |
3207 |
S |
#ffffff |
|
|
default |
| Straight |
3188 |
425 |
3188 |
S |
#ffffff |
|
|
default |
| Light |
3181 |
423 |
3181 |
M |
#ffffff |
|
|
default |
| No |
3178 |
422 |
3178 |
M |
#ffffff |
|
|
default |
| navy |
2113 |
280 |
2113 |
S |
#000080 |
|
|
default |
| royalblue |
2117 |
280 |
2117 |
S |
#4169e1 |
|
|
default |
| MR.ADLABS |
3230 |
31 |
3230 |
E |
#ffffff |
|
|
default |
| palegreen |
2162 |
280 |
2162 |
S |
#98fb98 |
|
|
default |
| khaki |
2179 |
280 |
2179 |
S |
#f0e68c |
|
|
default |
| darkkhaki |
2185 |
280 |
2185 |
S |
#bdb76b |
|
|
default |