Query time 0.00763
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "31.93"
},
"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": 7,
"filtered": "39.84",
"cost_info": {
"read_cost": "18.00",
"eval_cost": "1.43",
"prefix_cost": "21.60",
"data_read_per_join": "5K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"value_int",
"lang_code"
],
"attached_condition": "((`jmj_test`.`jmj_product_features_values`.`feature_id` in (31,176,177,178,179,180,182,183,181,184,187,188,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": "10.05",
"cost_info": {
"read_cost": "7.17",
"eval_cost": "0.14",
"prefix_cost": "30.21",
"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.72",
"eval_cost": "0.14",
"prefix_cost": "31.07",
"data_read_per_join": "316"
},
"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.72",
"eval_cost": "0.14",
"prefix_cost": "31.93",
"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 |
| Art Silk |
1107 |
179 |
1107 |
M |
#ffffff |
|
|
default |
| Embroidered |
1098 |
178 |
1098 |
M |
#ffffff |
|
|
default |
| Gotta Patti |
1144 |
183 |
1144 |
M |
#ffffff |
|
|
default |
| Regular Sleeves |
1140 |
182 |
1140 |
M |
#ffffff |
|
|
default |
| Straight |
1082 |
176 |
1082 |
M |
#ffffff |
|
|
default |
| Straight |
1154 |
184 |
1154 |
M |
#ffffff |
|
|
default |
| Sweetheart |
1089 |
177 |
1089 |
M |
#ffffff |
|
|
default |
| Trouser |
1134 |
181 |
1134 |
M |
#ffffff |
|
|
default |
| Dupatta |
1171 |
188 |
1171 |
M |
#ffffff |
|
|
default |
| Fresh |
766 |
132 |
766 |
S |
#ffffff |
|
|
default |
| Party |
1167 |
187 |
1167 |
M |
#ffffff |
|
|
default |
| 3 / 4 Sleeve |
1125 |
180 |
1125 |
S |
#ffffff |
|
|
default |
| S |
768 |
133 |
768 |
M |
#ffffff |
|
|
default |
| M |
769 |
133 |
769 |
M |
#ffffff |
|
|
default |
| L |
2250 |
133 |
2250 |
M |
#ffffff |
|
|
default |
| XL |
3156 |
133 |
3156 |
M |
#ffffff |
|
|
default |
| XXL |
771 |
133 |
771 |
M |
#ffffff |
|
|
default |
| TEMPO |
3246 |
31 |
3246 |
E |
#ffffff |
|
|
default |
| mediumvioletred |
2214 |
280 |
2214 |
S |
#c71585 |
|
|
default |