Query time 0.00263
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "27.07"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": [
"c_status",
"id_path"
],
"key": "id_path",
"used_key_parts": [
"id_path"
],
"key_length": "767",
"rows_examined_per_scan": 18,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "(`webmarco`.`cscart_categories`.`id_path` like '2653/9965/%')",
"cost_info": {
"read_cost": "26.14",
"eval_cost": "0.07",
"prefix_cost": "26.21",
"data_read_per_join": "2K"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"product_count",
"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`.`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.36",
"eval_cost": "0.07",
"prefix_cost": "26.64",
"data_read_per_join": "1K"
},
"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.36",
"eval_cost": "0.07",
"prefix_cost": "27.07",
"data_read_per_join": "624"
},
"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 |
product_count |
seo_name |
seo_path |
9993 |
9992 |
2653/9965/9992/9993 |
Coats & Jackets |
0 |
A |
0 |
0 |
178 |
coats-and-jackets |
2653/9965/9992 |
9979 |
9978 |
2653/9965/9978/9979 |
Coats & Jackets |
0 |
A |
0 |
0 |
6 |
coats-and-jackets |
2653/9965/9978 |
9978 |
9965 |
2653/9965/9978 |
Outerwear |
0 |
A |
0 |
0 |
3 |
outerwear |
2653/9965 |
9994 |
9965 |
2653/9965/9994 |
Pants |
0 |
A |
0 |
0 |
104 |
pants-en |
2653/9965 |
9966 |
9965 |
2653/9965/9966 |
Shirts & Tops |
0 |
A |
0 |
0 |
507 |
shirts-and-tops |
2653/9965 |
9984 |
9983 |
2653/9965/9983/9984 |
Underwear |
0 |
A |
0 |
0 |
62 |
underwear |
2653/9965/9983 |
9983 |
9965 |
2653/9965/9983 |
Underwear & Socks |
0 |
A |
0 |
0 |
14 |
underwear-and-socks |
2653/9965 |
9982 |
9978 |
2653/9965/9978/9982 |
Coats & Jackets |
0 |
A |
0 |
0 |
31 |
coats-and-jackets-en |
2653/9965/9978 |
9986 |
9965 |
2653/9965/9986 |
Dresses |
0 |
A |
0 |
0 |
365 |
dresses |
2653/9965 |
9992 |
9965 |
2653/9965/9992 |
Outerwear |
0 |
A |
0 |
0 |
0 |
outerwear-en |
2653/9965 |
9977 |
9965 |
2653/9965/9977 |
Pants |
0 |
A |
0 |
0 |
151 |
pants |
2653/9965 |
9971 |
9965 |
2653/9965/9971 |
Shirts & Tops |
0 |
A |
0 |
0 |
205 |
shirts-and-tops-en |
2653/9965 |
10125 |
9965 |
2653/9965/10125 |
Brand Children |
10 |
A |
0 |
0 |
0 |
brand-children |
2653/9965 |
10127 |
9965 |
2653/9965/10127 |
The Different Brands |
30 |
A |
0 |
0 |
7 |
le-diverse-brands |
2653/9965 |
10128 |
9965 |
2653/9965/10128 |
Brand Men |
40 |
A |
0 |
0 |
928 |
brand-man |
2653/9965 |
10129 |
9965 |
2653/9965/10129 |
Outlet Women |
50 |
A |
0 |
0 |
510 |
outlet-women |
2653/9965 |
10130 |
9965 |
2653/9965/10130 |
Outlet Men |
60 |
A |
0 |
0 |
6 |
outlet-man |
2653/9965 |
10131 |
9965 |
2653/9965/10131 |
Outlet Children |
70 |
A |
0 |
0 |
1 |
outlet-children |
2653/9965 |