Query time 0.00703
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "33.45"
},
"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": 18,
"rows_produced_per_join": 8,
"filtered": "46.72",
"cost_info": {
"read_cost": "18.00",
"eval_cost": "1.68",
"prefix_cost": "21.60",
"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 (31,18,20,8,17,19,81,36,133,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.73",
"cost_info": {
"read_cost": "8.41",
"eval_cost": "0.15",
"prefix_cost": "31.69",
"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.73",
"eval_cost": "0.15",
"prefix_cost": "32.57",
"data_read_per_join": "323"
},
"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.73",
"eval_cost": "0.15",
"prefix_cost": "33.45",
"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 |
| Button Down |
124 |
18 |
124 |
M |
#ffffff |
|
|
default |
| Checks |
154 |
20 |
154 |
M |
#ffffff |
|
|
default |
| Cotton |
132 |
8 |
132 |
M |
#ffffff |
|
|
default |
| Linen |
137 |
8 |
137 |
M |
#ffffff |
|
|
default |
| Plain |
276 |
36 |
276 |
S |
#ffffff |
|
|
default |
| Fresh |
766 |
132 |
766 |
S |
#ffffff |
|
|
default |
| Regular |
489 |
81 |
489 |
S |
#ffffff |
|
|
default |
| Full |
78 |
17 |
78 |
S |
#ffffff |
|
|
default |
| 34 |
2242 |
133 |
2242 |
M |
#ffffff |
|
|
default |
| 36 |
2243 |
133 |
2243 |
M |
#ffffff |
|
|
default |
| Slim |
150 |
19 |
150 |
S |
#ffffff |
|
|
default |
| 38 |
2244 |
133 |
2244 |
M |
#ffffff |
|
|
default |
| 40 |
2245 |
133 |
2245 |
M |
#ffffff |
|
|
default |
| 42 |
2246 |
133 |
2246 |
M |
#ffffff |
|
|
default |
| S |
768 |
133 |
768 |
M |
#ffffff |
|
|
default |
| gainsboro |
2109 |
280 |
2109 |
S |
#dcdcdc |
|
|
default |
| lightcyan |
2131 |
280 |
2131 |
S |
#e0ffff |
|
|
default |
| Assemble |
3247 |
31 |
3247 |
E |
#ffffff |
|
|
default |
| mintcream |
2164 |
280 |
2164 |
S |
#f5fffa |
|
|
default |
| khaki |
2179 |
280 |
2179 |
S |
#f0e68c |
|
|
default |
| mediumslateblue |
2220 |
280 |
2220 |
S |
#7b68ee |
|
|
default |