Query time 0.00114
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "15.65"
},
"ordering_operation": {
"using_filesort": true,
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "q_product_features_values",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"fl",
"lang_code",
"product_id",
"fpl"
],
"key": "product_id",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 8,
"rows_produced_per_join": 4,
"filtered": "56.37",
"cost_info": {
"read_cost": "8.00",
"eval_cost": "0.90",
"prefix_cost": "9.60",
"data_read_per_join": "3K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"value",
"value_int",
"lang_code"
],
"attached_condition": "(`portal`.`q_product_features_values`.`lang_code` = 'en')"
}
},
{
"table": {
"table_name": "pf",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"status"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"portal.q_product_features_values.feature_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "8.49",
"cost_info": {
"read_cost": "4.51",
"eval_cost": "0.08",
"prefix_cost": "15.01",
"data_read_per_join": "165"
},
"used_columns": [
"feature_id",
"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"
],
"attached_condition": "((`portal`.`pf`.`feature_type` <> 'G') and (`portal`.`pf`.`status` = 'A') and (`portal`.`pf`.`display_on_product` = 'Y') and ((`portal`.`pf`.`categories_path` = '') or isnull(`portal`.`pf`.`categories_path`) or find_in_set(12,`portal`.`pf`.`categories_path`) or find_in_set(604,`portal`.`pf`.`categories_path`) or find_in_set(91,`portal`.`pf`.`categories_path`) or find_in_set(92,`portal`.`pf`.`categories_path`)))"
}
},
{
"table": {
"table_name": "pf_groups",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id"
],
"key_length": "3",
"ref": [
"portal.pf.parent_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "19.00",
"cost_info": {
"read_cost": "0.38",
"eval_cost": "0.01",
"prefix_cost": "15.47",
"data_read_per_join": "31"
},
"used_columns": [
"feature_id",
"status",
"position"
],
"attached_condition": "<if>(found_match(pf_groups), ((`portal`.`pf_groups`.`status` = 'A') or isnull(`portal`.`pf_groups`.`status`)), 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": [
"portal.pf.parent_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.07",
"eval_cost": "0.01",
"prefix_cost": "15.56",
"data_read_per_join": "114"
},
"used_columns": [
"feature_id",
"description",
"lang_code"
]
}
},
{
"table": {
"table_name": "q_product_features_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id",
"lang_code"
],
"key_length": "9",
"ref": [
"portal.q_product_features_values.feature_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.07",
"eval_cost": "0.01",
"prefix_cost": "15.65",
"data_read_per_join": "114"
},
"used_columns": [
"feature_id",
"description",
"full_description",
"prefix",
"suffix",
"lang_code"
]
}
}
]
}
}
}
}
Result
feature_id |
company_id |
feature_type |
parent_id |
display_on_product |
display_on_catalog |
display_on_header |
description |
lang_code |
prefix |
suffix |
categories_path |
full_description |
status |
comparison |
position |
purpose |
feature_style |
filter_style |
group_position |
value |
variant_id |
value_int |
2 |
0 |
E |
1 |
Y |
Y |
Y |
Brand |
en |
|
|
|
|
A |
N |
0 |
organize_catalog |
brand |
checkbox |
1 |
|
7478 |
|
3 |
0 |
T |
1 |
Y |
N |
N |
Model Name |
en |
|
|
|
|
A |
N |
1 |
describe_product |
|
|
1 |
DK3030-C1 |
0 |
|
10 |
0 |
S |
1 |
Y |
N |
N |
Color |
en |
|
|
|
|
A |
N |
2 |
group_variation_catalog_item |
dropdown |
checkbox |
1 |
|
36 |
|
6 |
0 |
S |
1 |
Y |
Y |
Y |
Department |
en |
|
|
|
|
A |
N |
6 |
find_products |
text |
checkbox |
1 |
|
1 |
|