Query time 0.01161
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "14.73"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "jmj_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"c_status",
"parent",
"id_path",
"p_category_id"
],
"key": "parent",
"used_key_parts": [
"parent_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 13,
"rows_produced_per_join": 0,
"filtered": "0.83",
"cost_info": {
"read_cost": "12.00",
"eval_cost": "0.02",
"prefix_cost": "14.60",
"data_read_per_join": "430"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"ab__fn_category_status",
"ab__fn_label_color",
"ab__fn_label_background",
"ab__fn_use_origin_image",
"ab__lc_catalog_image_control",
"storefront_id"
],
"attached_condition": "(((`jmj_test`.`jmj_categories`.`usergroup_ids` = '') or find_in_set(0,`jmj_test`.`jmj_categories`.`usergroup_ids`) or find_in_set(1,`jmj_test`.`jmj_categories`.`usergroup_ids`)) and (`jmj_test`.`jmj_categories`.`status` = 'A') and (`jmj_test`.`jmj_categories`.`id_path` like '2/36/%') and (`jmj_test`.`jmj_categories`.`category_id` <> 1) and (`jmj_test`.`jmj_categories`.`storefront_id` in (0,1)))"
}
},
{
"table": {
"table_name": "jmj_category_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id",
"lang_code"
],
"key_length": "9",
"ref": [
"jmj_test.jmj_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.11",
"eval_cost": "0.02",
"prefix_cost": "14.73",
"data_read_per_join": "369"
},
"used_columns": [
"category_id",
"lang_code",
"category",
"ab__fn_label_text",
"ab__fn_label_show"
]
}
}
]
}
}
}
Result
| category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
ab__lc_catalog_image_control |
ab__fn_category_status |
ab__fn_label_color |
ab__fn_label_background |
ab__fn_use_origin_image |
ab__fn_label_text |
ab__fn_label_show |
| 31 |
36 |
2/36/31 |
Kurta |
10 |
A |
0 |
0 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 32 |
36 |
2/36/32 |
Kurta Sets |
20 |
A |
0 |
0 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 33 |
36 |
2/36/33 |
Kurtis |
30 |
A |
0 |
0 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 34 |
36 |
2/36/34 |
Leggings |
40 |
A |
0 |
0 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 35 |
36 |
2/36/35 |
Churidars |
50 |
A |
0 |
0 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 37 |
36 |
2/36/37 |
Patiala & Salwar |
60 |
A |
0 |
0 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 38 |
36 |
2/36/38 |
Palazzos |
70 |
A |
0 |
0 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 39 |
36 |
2/36/39 |
Dress Materials |
80 |
A |
0 |
0 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 41 |
36 |
2/36/41 |
Sarees |
90 |
A |
0 |
0 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 40 |
36 |
2/36/40 |
Lehenga Cholis |
100 |
A |
0 |
0 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 43 |
36 |
2/36/43 |
Gowns |
110 |
A |
0 |
0 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 42 |
36 |
2/36/42 |
Dupattas |
120 |
A |
0 |
0 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 44 |
36 |
2/36/44 |
Shawls |
130 |
A |
0 |
0 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |