Query time 0.02314
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "55.56"
},
"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",
"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": 19,
"filtered": "99.97",
"cost_info": {
"read_cost": "20.00",
"eval_cost": "4.00",
"prefix_cost": "24.00",
"data_read_per_join": "15K"
},
"used_columns": [
"feature_id",
"product_id",
"variant_id",
"value",
"value_int",
"lang_code"
],
"attached_condition": "(`jmj_test`.`jmj_product_features_values`.`lang_code` = 'en')"
}
},
{
"table": {
"table_name": "pf",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"status",
"company_id"
],
"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": 1,
"filtered": "8.74",
"cost_info": {
"read_cost": "19.99",
"eval_cost": "0.35",
"prefix_cost": "47.99",
"data_read_per_join": "768"
},
"used_columns": [
"feature_id",
"feature_code",
"company_id",
"purpose",
"feature_style",
"filter_style",
"feature_type",
"categories_path",
"parent_id",
"display_on_product",
"display_on_catalog",
"display_on_header",
"status",
"position",
"comparison",
"timestamp",
"updated_timestamp"
],
"attached_condition": "((`jmj_test`.`pf`.`feature_type` <> 'G') and (`jmj_test`.`pf`.`status` = 'A') and (`jmj_test`.`pf`.`company_id` in (0,111)) and (`jmj_test`.`pf`.`display_on_product` = 'Y') and ((`jmj_test`.`pf`.`categories_path` = '') or isnull(`jmj_test`.`pf`.`categories_path`) or find_in_set(2,`jmj_test`.`pf`.`categories_path`) or find_in_set(46,`jmj_test`.`pf`.`categories_path`) or find_in_set(60,`jmj_test`.`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": [
"jmj_test.pf.parent_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "19.00",
"cost_info": {
"read_cost": "1.75",
"eval_cost": "0.07",
"prefix_cost": "50.09",
"data_read_per_join": "146"
},
"used_columns": [
"feature_id",
"status",
"position"
],
"attached_condition": "<if>(found_match(pf_groups), ((`jmj_test`.`pf_groups`.`status` = 'A') or isnull(`jmj_test`.`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": [
"jmj_test.pf.parent_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.33",
"eval_cost": "0.07",
"prefix_cost": "50.49",
"data_read_per_join": "772"
},
"used_columns": [
"feature_id",
"description",
"lang_code"
]
}
},
{
"table": {
"table_name": "jmj_product_features_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"feature_id",
"lang_code"
],
"key_length": "9",
"ref": [
"jmj_test.jmj_product_features_values.feature_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.33",
"eval_cost": "0.07",
"prefix_cost": "50.89",
"data_read_per_join": "772"
},
"used_columns": [
"feature_id",
"description",
"internal_name",
"full_description",
"prefix",
"suffix",
"lang_code"
]
}
},
{
"table": {
"table_name": "abt_filters",
"access_type": "ref",
"possible_keys": [
"feature_id",
"company_id"
],
"key": "company_id",
"used_key_parts": [
"company_id"
],
"key_length": "5",
"ref": [
"jmj_test.pf.company_id"
],
"rows_examined_per_scan": 11,
"rows_produced_per_join": 3,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.89",
"eval_cost": "0.78",
"prefix_cost": "55.56",
"data_read_per_join": "280"
},
"used_columns": [
"filter_id",
"company_id",
"feature_id"
],
"attached_condition": "<if>(is_not_null_compl(abt_filters), (`jmj_test`.`abt_filters`.`feature_id` = `jmj_test`.`jmj_product_features_values`.`feature_id`), true)"
}
}
]
}
}
}
}
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 |
| 31 |
0 |
E |
0 |
Y |
N |
N |
Brands |
Brands |
en |
|
|
|
|
A |
N |
1 |
organize_catalog |
brand |
checkbox |
|
1624607393 |
1734520895 |
|
|
3149 |
|
129 |
| 370 |
0 |
M |
0 |
Y |
N |
N |
Pattern |
Women-Jeans-Pattern |
en |
|
|
60 |
|
A |
N |
1401 |
find_products |
multiple_checkbox |
checkbox |
|
1640259180 |
1640432510 |
|
|
2837 |
|
369 |
| 371 |
0 |
M |
0 |
Y |
N |
N |
Fabric |
Women-Jeans-Fabric |
en |
|
|
60 |
|
A |
N |
1402 |
find_products |
multiple_checkbox |
checkbox |
|
1640259260 |
1651819208 |
|
|
2838 |
|
370 |
| 372 |
0 |
M |
0 |
Y |
N |
N |
Distress |
Women-Jeans-Distress |
en |
|
|
60 |
|
A |
N |
1403 |
find_products |
multiple_checkbox |
checkbox |
|
1640259358 |
1640432207 |
|
|
2850 |
|
371 |
| 374 |
0 |
M |
0 |
Y |
N |
N |
Shade |
Women-Jeans-Shade |
en |
|
|
60 |
|
A |
N |
1404 |
find_products |
multiple_checkbox |
checkbox |
|
1640259568 |
1640432565 |
|
|
2854 |
|
373 |
| 373 |
0 |
M |
0 |
Y |
N |
N |
Fade |
Women-Jeans-Fade |
en |
|
|
60 |
|
A |
N |
1405 |
find_products |
multiple_checkbox |
checkbox |
|
1640259437 |
1640432588 |
|
|
2849 |
|
372 |
| 375 |
0 |
S |
0 |
Y |
N |
N |
Fit |
Women-Jeans-Fit |
en |
|
|
60 |
|
A |
N |
1406 |
find_products |
text |
checkbox |
|
1640259688 |
1640432619 |
|
|
2855 |
|
374 |
| 376 |
0 |
S |
0 |
Y |
N |
N |
Length |
Women-Jeans-Length |
en |
|
|
60 |
|
A |
N |
1407 |
find_products |
text |
checkbox |
|
1640259770 |
1640259770 |
|
|
2864 |
|
375 |
| 378 |
0 |
S |
0 |
Y |
N |
N |
Wash Type |
Women-Jeans-Wash Type |
en |
|
|
60 |
|
A |
N |
1408 |
find_products |
text |
checkbox |
|
1640260111 |
1640260111 |
|
|
2876 |
|
377 |
| 379 |
0 |
S |
0 |
Y |
N |
N |
Waist Rise |
Women-Jeans-Waist Rise |
en |
|
|
60 |
|
A |
N |
1409 |
find_products |
text |
checkbox |
|
1640260181 |
1640260181 |
|
|
2883 |
|
378 |
| 380 |
0 |
S |
0 |
Y |
N |
N |
Stretch |
Women-Jeans-Stretch |
en |
|
|
60 |
|
A |
N |
1410 |
find_products |
text |
checkbox |
|
1640260246 |
1640260246 |
|
|
2885 |
|
379 |
| 377 |
0 |
S |
0 |
Y |
N |
N |
Weave Type |
Women-Jeans-Weave Type |
en |
|
|
60 |
|
A |
N |
1411 |
find_products |
text |
checkbox |
|
1640259847 |
1640259908 |
|
|
2872 |
|
376 |
| 255 |
0 |
M |
0 |
Y |
Y |
N |
Size |
Trousers-Size |
en |
|
|
21,22,23,24,20,46 |
|
A |
N |
4999 |
find_products |
multiple_checkbox |
checkbox |
|
1632040367 |
1647066003 |
|
|
1691 |
|
253 |
| 280 |
0 |
S |
0 |
Y |
Y |
N |
Color |
Color |
en |
|
|
|
|
A |
N |
5000 |
find_products |
text |
color |
|
1632930455 |
1728372055 |
|
|
2117 |
|
280 |
| 132 |
0 |
S |
0 |
Y |
N |
N |
Stock Type |
Stock Type |
en |
|
|
|
|
A |
N |
10000 |
find_products |
text |
checkbox |
|
1625550584 |
1724570302 |
|
|
766 |
|
128 |