Query time 0.00223
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "135.89"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "cscart_product_features_values",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"fl",
"variant_id",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "idx_product_feature_variant_id",
"used_key_parts": [
"product_id",
"feature_id",
"lang_code"
],
"key_length": "12",
"rows_examined_per_scan": 16,
"rows_produced_per_join": 16,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "4.81",
"eval_cost": "3.20",
"prefix_cost": "8.01",
"data_read_per_join": "12K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`danishecarter_latest`.`cscart_product_features_values`.`product_id` = 495) and (`danishecarter_latest`.`cscart_product_features_values`.`feature_id` in (889,906,915,908,840,838,831,902,836,825,827,826,833,913,901)) and (`danishecarter_latest`.`cscart_product_features_values`.`lang_code` = 'en'))"
}
},
{
"table": {
"table_name": "cscart_product_feature_variants",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"feature_id"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id"
],
"key_length": "3",
"ref": [
"danishecarter_latest.cscart_product_features_values.variant_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 12,
"filtered": "80.67",
"cost_info": {
"read_cost": "16.00",
"eval_cost": "2.58",
"prefix_cost": "27.21",
"data_read_per_join": "34K"
},
"used_columns": [
"variant_id",
"feature_id",
"position",
"mdc_variant"
],
"attached_condition": "(`danishecarter_latest`.`cscart_product_feature_variants`.`feature_id` = `danishecarter_latest`.`cscart_product_features_values`.`feature_id`)"
}
},
{
"table": {
"table_name": "cscart_product_features",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"danishecarter_latest.cscart_product_features_values.feature_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 12,
"filtered": "100.00",
"cost_info": {
"read_cost": "12.91",
"eval_cost": "2.58",
"prefix_cost": "42.70",
"data_read_per_join": "15K"
},
"used_columns": [
"feature_id",
"feature_type"
]
}
},
{
"table": {
"table_name": "cscart_product_feature_variant_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"variant_id",
"lang_code"
],
"key_length": "9",
"ref": [
"danishecarter_latest.cscart_product_features_values.variant_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 12,
"filtered": "100.00",
"cost_info": {
"read_cost": "12.91",
"eval_cost": "2.58",
"prefix_cost": "58.19",
"data_read_per_join": "39K"
},
"used_columns": [
"variant_id",
"variant",
"lang_code"
]
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code"
],
"key_length": "206",
"ref": [
"danishecarter_latest.cscart_product_features_values.variant_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 5,
"rows_produced_per_join": 64,
"filtered": "100.00",
"cost_info": {
"read_cost": "64.80",
"eval_cost": "12.91",
"prefix_cost": "135.89",
"data_read_per_join": "109K"
},
"used_columns": [
"name",
"object_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
}
Result
variant |
variant_id |
feature_id |
selected |
feature_type |
seo_name |
seo_path |
mdc_variant |
2993 |
14517 |
840 |
14517 |
N |
|
|
2993 |
340 |
14516 |
913 |
14516 |
N |
|
|
340 |
4 (Green) |
12218 |
831 |
12218 |
S |
|
|
EMISSIONSSTICKER_GREEN |
5 |
12299 |
833 |
12299 |
N |
|
|
5 |
All wheel drive |
12356 |
838 |
12356 |
S |
|
|
ALL_WHEEL |
ALPINA |
10953 |
827 |
10953 |
E |
alpina |
|
ALPINA |
Automatic |
12340 |
836 |
12340 |
S |
|
|
AUTOMATIC_GEAR |
B3 |
9876 |
826 |
9876 |
S |
|
|
B3 |
Fixed |
13914 |
901 |
13914 |
S |
|
|
FIXED |
Germany |
13999 |
915 |
13999 |
S |
|
|
DE |
New vehicle |
13934 |
906 |
13934 |
S |
|
|
NEW |
No |
13936 |
908 |
13936 |
S |
|
|
N |
particulateFilterDiesel |
14518 |
889 |
14518 |
M |
|
|
particulateFilterDiesel |
Petrol |
13917 |
902 |
13917 |
S |
|
|
PETROL |
roadworthy |
14514 |
889 |
14514 |
M |
|
|
roadworthy |
Saloon |
10370 |
825 |
10370 |
S |
|
|
Limousine |
warranty |
14317 |
889 |
14317 |
M |
|
|
warranty |