Query time 0.00184
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "16.92"
},
"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": 14,
"rows_produced_per_join": 0,
"filtered": "0.36",
"cost_info": {
"read_cost": "14.00",
"eval_cost": "0.01",
"prefix_cost": "16.80",
"data_read_per_join": "303"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"storefront_id"
],
"attached_condition": "(((`webmarco`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`webmarco`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`webmarco`.`cscart_categories`.`usergroup_ids`)) and (`webmarco`.`cscart_categories`.`status` = 'A') and (`webmarco`.`cscart_categories`.`id_path` like '2653/9965/%') and (`webmarco`.`cscart_categories`.`storefront_id` in (0,1)))"
}
},
{
"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": [
"webmarco.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": "16.86",
"data_read_per_join": "208"
},
"used_columns": [
"category_id",
"lang_code",
"category"
]
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code"
],
"key_length": "206",
"ref": [
"webmarco.cscart_categories.category_id",
"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": "16.92",
"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 |
storefront_id |
seo_name |
seo_path |
9978 |
9965 |
2653/9965/9978 |
Outerwear |
0 |
A |
0 |
0 |
outerwear |
2653/9965 |
9994 |
9965 |
2653/9965/9994 |
Pants |
0 |
A |
0 |
0 |
pants-en |
2653/9965 |
9966 |
9965 |
2653/9965/9966 |
Shirts & Tops |
0 |
A |
0 |
0 |
shirts-and-tops |
2653/9965 |
9983 |
9965 |
2653/9965/9983 |
Underwear & Socks |
0 |
A |
0 |
0 |
underwear-and-socks |
2653/9965 |
9986 |
9965 |
2653/9965/9986 |
Dresses |
0 |
A |
0 |
0 |
dresses |
2653/9965 |
9992 |
9965 |
2653/9965/9992 |
Outerwear |
0 |
A |
0 |
0 |
outerwear-en |
2653/9965 |
9977 |
9965 |
2653/9965/9977 |
Pants |
0 |
A |
0 |
0 |
pants |
2653/9965 |
9971 |
9965 |
2653/9965/9971 |
Shirts & Tops |
0 |
A |
0 |
0 |
shirts-and-tops-en |
2653/9965 |
10125 |
9965 |
2653/9965/10125 |
Brand Children |
10 |
A |
0 |
0 |
brand-children |
2653/9965 |
10127 |
9965 |
2653/9965/10127 |
The Different Brands |
30 |
A |
0 |
0 |
le-diverse-brands |
2653/9965 |
10128 |
9965 |
2653/9965/10128 |
Brand Men |
40 |
A |
0 |
0 |
brand-man |
2653/9965 |
10129 |
9965 |
2653/9965/10129 |
Outlet Women |
50 |
A |
0 |
0 |
outlet-women |
2653/9965 |
10130 |
9965 |
2653/9965/10130 |
Outlet Men |
60 |
A |
0 |
0 |
outlet-man |
2653/9965 |
10131 |
9965 |
2653/9965/10131 |
Outlet Children |
70 |
A |
0 |
0 |
outlet-children |
2653/9965 |