Query time 0.00377
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "124.43"
},
"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": 28,
"rows_produced_per_join": 28,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "7.69",
"eval_cost": "5.60",
"prefix_cost": "13.29",
"data_read_per_join": "21K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"lang_code"
],
"attached_condition": "((`danishecarter_latest`.`cscart_product_features_values`.`product_id` = 587) and (`danishecarter_latest`.`cscart_product_features_values`.`feature_id` in (1042,1101,1022,1061,1033,1111,1049,1028,1052,1046,1056,1023,1045,1102,1029,1030,1051,1031,1038,1113)) 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": 9,
"filtered": "32.17",
"cost_info": {
"read_cost": "28.00",
"eval_cost": "1.80",
"prefix_cost": "46.89",
"data_read_per_join": "23K"
},
"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": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "9.01",
"eval_cost": "1.80",
"prefix_cost": "57.70",
"data_read_per_join": "10K"
},
"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": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "9.01",
"eval_cost": "1.80",
"prefix_cost": "68.51",
"data_read_per_join": "27K"
},
"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": 45,
"filtered": "100.00",
"cost_info": {
"read_cost": "46.91",
"eval_cost": "9.01",
"prefix_cost": "124.43",
"data_read_per_join": "76K"
},
"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 |
12902 |
23197 |
1061 |
23197 |
N |
|
|
12902 |
18000 |
23248 |
1038 |
23248 |
N |
|
|
18000 |
2 |
23005 |
1101 |
23005 |
S |
|
|
2 |
201903 |
23190 |
1046 |
23190 |
N |
|
|
201903 |
20500 |
23193 |
1102 |
23193 |
N |
|
|
20500 |
355 |
23196 |
1029 |
23196 |
N |
|
|
355 |
4 (Green) |
18933 |
1028 |
18933 |
S |
|
|
EMISSIONSSTICKER_GREEN |
4x2 |
23040 |
1113 |
23040 |
S |
|
|
WHEEL_DRIVE_4x2 |
712592 |
23263 |
1045 |
23263 |
N |
|
|
712592 |
Automatic |
22768 |
1051 |
22768 |
S |
|
|
AUTOMATIC_GEAR |
auxiliaryHeating |
23189 |
1042 |
23189 |
M |
|
|
auxiliaryHeating |
DAF |
21702 |
1023 |
21702 |
E |
daf |
|
DAF |
Diesel |
22797 |
1056 |
22797 |
S |
|
|
DIESEL |
Euro6c |
22757 |
1049 |
22757 |
S |
|
|
EURO6C |
Fixed |
18937 |
1030 |
18937 |
S |
|
|
FIXED |
Long distance traffic |
23035 |
1111 |
23035 |
S |
|
|
LONG_DISTANCE_TRAFFIC |
navigationPreparation |
23264 |
1042 |
23264 |
M |
|
|
navigationPreparation |
navigationSystem |
23208 |
1042 |
23208 |
M |
|
|
navigationSystem |
No |
18943 |
1033 |
18943 |
S |
|
|
N |
Standard tractor/trailer unit |
21601 |
1022 |
21601 |
S |
|
|
StandardTractorAndTrailerUnit |
Used vehicle |
18940 |
1031 |
18940 |
S |
|
|
USED |
White |
22778 |
1052 |
22778 |
S |
|
|
WHITE |