Query time 0.00089
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "43.15"
},
"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": 29,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "(`cscart_db`.`cscart_categories`.`id_path` like '2768/%')",
"cost_info": {
"read_cost": "13.25",
"eval_cost": "0.06",
"prefix_cost": "13.31",
"data_read_per_join": "1K"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"storefront_id"
],
"attached_condition": "(((`cscart_db`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`cscart_db`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`cscart_db`.`cscart_categories`.`usergroup_ids`))) and (`cscart_db`.`cscart_categories`.`status` = 'A') and (`cscart_db`.`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": [
"cscart_db.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.15",
"eval_cost": "0.06",
"prefix_cost": "13.51",
"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": [
"cscart_db.cscart_categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 146,
"rows_produced_per_join": 84,
"filtered": "100.00",
"cost_info": {
"read_cost": "21.17",
"eval_cost": "8.47",
"prefix_cost": "43.15",
"data_read_per_join": "143K"
},
"used_columns": [
"name",
"object_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
| category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
seo_name |
seo_path |
| 3057 |
2769 |
2768/2769/3057 |
Air Freshner |
0 |
A |
0 |
0 |
air-freshner-en |
2768/2769 |
| 3019 |
2774 |
2768/2774/3019 |
Bath Accessories |
0 |
A |
0 |
0 |
bath-accessories |
2768/2774 |
| 3016 |
2774 |
2768/2774/3016 |
Bath Oils |
0 |
A |
0 |
0 |
bath-oils |
2768/2774 |
| 2775 |
2774 |
2768/2774/2775 |
Bath salts |
0 |
A |
0 |
0 |
bath-salts |
2768/2774 |
| 2776 |
2771 |
2768/2771/2776 |
Body butters |
0 |
A |
0 |
0 |
body-butters |
2768/2771 |
| 2773 |
2771 |
2768/2771/2773 |
Body lotions |
0 |
A |
0 |
0 |
body-lotions |
2768/2771 |
| 2782 |
2769 |
2768/2769/2782 |
Body mists |
0 |
A |
0 |
0 |
body-mists |
2768/2769 |
| 2772 |
2771 |
2768/2771/2772 |
Body oils |
0 |
A |
0 |
0 |
body-oils |
2768/2771 |
| 2779 |
2774 |
2768/2774/2779 |
Body wash |
0 |
A |
0 |
0 |
body-wash |
2768/2774 |
| 2778 |
2769 |
2768/2769/2778 |
Deodorants |
0 |
A |
0 |
0 |
deodorants |
2768/2769 |
| 2789 |
2771 |
2768/2771/2789 |
Foot creams |
0 |
A |
0 |
0 |
foot-creams |
2768/2771 |
| 3015 |
2769 |
2768/2769/3015 |
Hair Mists |
0 |
A |
0 |
0 |
hair-mists |
2768/2769 |
| 2781 |
2771 |
2768/2771/2781 |
Hand creams |
0 |
A |
0 |
0 |
hand-creams |
2768/2771 |
| 2780 |
2769 |
2768/2769/2780 |
Perfumes |
0 |
A |
0 |
0 |
perfumes |
2768/2769 |
| 2777 |
2774 |
2768/2774/2777 |
Scrubs |
0 |
A |
0 |
0 |
scrubs |
2768/2774 |
| 2783 |
2774 |
2768/2774/2783 |
Soaps |
0 |
A |
0 |
0 |
soaps |
2768/2774 |
| 2788 |
2771 |
2768/2771/2788 |
Talcum |
0 |
A |
0 |
0 |
talcum |
2768/2771 |
| 2925 |
2774 |
2768/2774/2925 |
Accessories |
10 |
A |
0 |
0 |
accessories |
2768/2774 |
| 3056 |
2769 |
2768/2769/3056 |
Aroma and candles |
10 |
A |
0 |
0 |
aroma-and-candles |
2768/2769 |
| 2774 |
2768 |
2768/2774 |
Bath |
10 |
A |
0 |
0 |
bath |
2768 |
| 2771 |
2768 |
2768/2771 |
Body Care |
20 |
A |
0 |
0 |
body-care |
2768 |
| 1491 |
2769 |
2768/2769/1491 |
Room Freshner |
20 |
A |
0 |
0 |
air-freshner |
2768/2769 |
| 2769 |
2768 |
2768/2769 |
Fragrance |
30 |
A |
0 |
0 |
fragrance |
2768 |
| 2786 |
3095 |
2768/3095/2786 |
Oral Care |
50 |
A |
0 |
0 |
oral-care |
2768/3095 |
| 2022 |
3095 |
2768/3095/2022 |
Massage & Relaxation |
60 |
A |
0 |
0 |
massage-and-relaxation |
2768/3095 |
| 2794 |
3095 |
2768/3095/2794 |
Hand Wash & Sanitisers |
80 |
A |
0 |
0 |
hand-wash-and-sanitisers |
2768/3095 |
| 3095 |
2768 |
2768/3095 |
Hygiene and more |
90 |
A |
0 |
0 |
hygiene-and-more |
2768 |