Query time 0.00134
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "20.23"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "pf",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"status"
],
"key": "status",
"used_key_parts": [
"status"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 52,
"rows_produced_per_join": 18,
"filtered": "36.00",
"cost_info": {
"read_cost": "2.25",
"eval_cost": "1.87",
"prefix_cost": "7.45",
"data_read_per_join": "31K"
},
"used_columns": [
"feature_id",
"feature_code",
"company_id",
"feature_type",
"categories_path",
"parent_id",
"display_on_product",
"display_on_catalog",
"display_on_header",
"status",
"position",
"comparison",
"purpose",
"feature_style",
"filter_style",
"timestamp",
"updated_timestamp"
],
"attached_condition": "((`testdobroded`.`pf`.`feature_type` <> 'G') and (`testdobroded`.`pf`.`feature_code` in ('Brand','ISBN','GTIN','MPN')))"
}
},
{
"table": {
"table_name": "pf_groups",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"testdobroded.pf.parent_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 3,
"filtered": "19.00",
"cost_info": {
"read_cost": "4.68",
"eval_cost": "0.36",
"prefix_cost": "14.00",
"data_read_per_join": "5K"
},
"used_columns": [
"feature_id",
"status",
"position"
],
"attached_condition": "<if>(found_match(pf_groups), ((`testdobroded`.`pf_groups`.`status` = 'A') or (`testdobroded`.`pf_groups`.`status` is null)), true)"
}
},
{
"table": {
"table_name": "pf_groups_description",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id",
"lang_code"
],
"key_length": "9",
"ref": [
"testdobroded.pf.parent_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 3,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.89",
"eval_cost": "0.36",
"prefix_cost": "15.25",
"data_read_per_join": "8K"
},
"used_columns": [
"feature_id",
"description",
"lang_code"
]
}
},
{
"table": {
"table_name": "cscart_product_features_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id",
"lang_code"
],
"key_length": "9",
"ref": [
"testdobroded.pf.feature_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 3,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.89",
"eval_cost": "0.36",
"prefix_cost": "16.49",
"data_read_per_join": "8K"
},
"used_columns": [
"feature_id",
"description",
"full_description",
"prefix",
"suffix",
"lang_code",
"internal_name"
]
}
},
{
"table": {
"table_name": "cscart_product_features_values",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"lang_code",
"product_id",
"fpl",
"idx_product_feature_variant_id"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id",
"product_id"
],
"key_length": "6",
"ref": [
"testdobroded.pf.feature_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 3,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.89",
"eval_cost": "0.36",
"prefix_cost": "17.74",
"data_read_per_join": "2K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"value",
"value_int",
"lang_code"
],
"attached_condition": "<if>(is_not_null_compl(cscart_product_features_values), (`testdobroded`.`cscart_product_features_values`.`lang_code` = 'ru'), true)"
}
},
{
"table": {
"table_name": "abt_filters",
"access_type": "ref",
"possible_keys": [
"feature_id",
"company_id"
],
"key": "feature_id",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"testdobroded.pf.feature_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 3,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.89",
"eval_cost": "0.36",
"prefix_cost": "18.98",
"data_read_per_join": "825"
},
"used_columns": [
"filter_id",
"company_id",
"feature_id"
],
"attached_condition": "<if>(is_not_null_compl(abt_filters), (`testdobroded`.`abt_filters`.`company_id` = `testdobroded`.`pf`.`company_id`), true)"
}
},
{
"table": {
"table_name": "cscart_ult_objects_sharing",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"share_object_id",
"share_company_id",
"share_object_type"
],
"key_length": "159",
"ref": [
"testdobroded.pf.feature_id",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 3,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "0.89",
"eval_cost": "0.36",
"prefix_cost": "20.23",
"data_read_per_join": "569"
},
"used_columns": [
"share_company_id",
"share_object_id",
"share_object_type"
],
"attached_condition": "(`testdobroded`.`cscart_ult_objects_sharing`.`share_object_id` = `testdobroded`.`pf`.`feature_id`)"
}
}
]
}
}
}
}
Result
| feature_id |
company_id |
feature_type |
parent_id |
display_on_product |
display_on_catalog |
display_on_header |
description |
internal_name |
lang_code |
prefix |
suffix |
categories_path |
full_description |
status |
comparison |
position |
purpose |
feature_style |
filter_style |
feature_code |
timestamp |
updated_timestamp |
group_position |
value |
variant_id |
value_int |
filter_id |
| 2 |
1 |
T |
1 |
Y |
N |
N |
GTIN |
GTIN |
ru |
|
|
|
|
A |
N |
0 |
describe_product |
text |
|
GTIN |
1608669141 |
1651093912 |
0 |
|
|
|
|
| 3 |
1 |
T |
1 |
Y |
N |
Y |
MPN |
MPN |
ru |
|
|
|
|
A |
N |
0 |
describe_product |
text |
|
MPN |
1608669141 |
1651093941 |
0 |
|
|
|
|
| 4 |
1 |
E |
1 |
Y |
Y |
Y |
Торговая марка |
Brand |
ru |
|
|
|
|
A |
N |
1 |
organize_catalog |
brand |
checkbox |
Brand |
1608669141 |
1702430799 |
0 |
|
|
|
1 |