Query time 0.00202
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "33.65"
},
"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": 20,
"rows_produced_per_join": 6,
"filtered": "34.69",
"cost_info": {
"read_cost": "20.00",
"eval_cost": "1.39",
"prefix_cost": "24.00",
"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,221,222,224,225,226,228,280,419,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.99",
"cost_info": {
"read_cost": "6.94",
"eval_cost": "0.11",
"prefix_cost": "32.32",
"data_read_per_join": "877"
},
"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.55",
"eval_cost": "0.11",
"prefix_cost": "32.99",
"data_read_per_join": "243"
},
"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.55",
"eval_cost": "0.11",
"prefix_cost": "33.65",
"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 |
| Art Silk |
1398 |
222 |
1398 |
M |
#ffffff |
|
|
default |
| No |
1447 |
224 |
1447 |
M |
#ffffff |
|
|
default |
| One Size |
3153 |
419 |
3153 |
S |
#ffffff |
|
|
default |
| Party |
1479 |
228 |
1479 |
M |
#ffffff |
|
|
default |
| Plain |
1455 |
225 |
1455 |
M |
#ffffff |
|
|
default |
| Polyester |
1409 |
222 |
1409 |
M |
#ffffff |
|
|
default |
| Solid |
1396 |
221 |
1396 |
M |
#ffffff |
|
|
default |
| Stitched Blouse |
1459 |
226 |
1459 |
S |
#ffffff |
|
|
default |
| Fresh |
766 |
132 |
766 |
S |
#ffffff |
|
|
default |
| midnightblue |
2112 |
280 |
2112 |
S |
#191970 |
|
|
default |
| dodgerblue |
2118 |
280 |
2118 |
S |
#1e90ff |
|
|
default |
| Shree Radha Studio |
3231 |
31 |
3231 |
E |
#ffffff |
|
|
default |
| yellow |
2180 |
280 |
2180 |
S |
#ffff00 |
|
|
default |
| red |
2201 |
280 |
2201 |
S |
#ff0000 |
|
|
default |
| purple |
2224 |
280 |
2224 |
S |
#800080 |
|
|
default |