Query time 0.00132
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "3.72"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "ref",
"possible_keys": [
"c_status",
"parent",
"id_path"
],
"key": "parent",
"used_key_parts": [
"parent_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 3,
"rows_produced_per_join": 0,
"filtered": "1.67",
"cost_info": {
"read_cost": "3.00",
"eval_cost": "0.01",
"prefix_cost": "3.60",
"data_read_per_join": "137"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"position",
"age_verification",
"age_limit",
"is_trash",
"ab__fn_category_status",
"ab__fn_label_color",
"ab__fn_label_background",
"ab__fn_use_origin_image",
"ab__lc_catalog_image_control"
],
"attached_condition": "((`eshopuga_upgr_4122`.`cscart_categories`.`company_id` = 1) and ((`eshopuga_upgr_4122`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`eshopuga_upgr_4122`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`eshopuga_upgr_4122`.`cscart_categories`.`usergroup_ids`)) and (`eshopuga_upgr_4122`.`cscart_categories`.`status` = 'A') and (`eshopuga_upgr_4122`.`cscart_categories`.`id_path` like '334/%'))"
}
},
{
"table": {
"table_name": "cscart_category_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id",
"lang_code"
],
"key_length": "9",
"ref": [
"eshopuga_upgr_4122.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.05",
"eval_cost": "0.01",
"prefix_cost": "3.66",
"data_read_per_join": "170"
},
"used_columns": [
"category_id",
"lang_code",
"category",
"age_warning_message",
"ab__fn_label_text",
"ab__fn_label_show"
]
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code",
"company_id"
],
"key_length": "210",
"ref": [
"eshopuga_upgr_4122.cscart_categories.category_id",
"const",
"const",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.05",
"eval_cost": "0.01",
"prefix_cost": "3.72",
"data_read_per_join": "86"
},
"used_columns": [
"name",
"object_id",
"company_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
seo_name |
seo_path |
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 |
age_verification |
age_limit |
age_warning_message |
442 |
334 |
334/442 |
Body Sprays |
20 |
A |
1 |
body-sprays |
334 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
N |
0 |
|
443 |
334 |
334/443 |
Art & Crafts |
30 |
A |
1 |
art-and-crafts |
334 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
N |
0 |
|
444 |
334 |
334/444 |
Skin Care & Shampoo |
40 |
A |
1 |
shampoo |
334 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
N |
0 |
|
445 |
334 |
334/445 |
Beauty & More |
50 |
A |
1 |
shower-gels |
334 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
N |
0 |
|
448 |
334 |
334/448 |
Baby/Kids Toys |
60 |
A |
1 |
baby-kids-toys |
334 |
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
N |
0 |
|