Query time 0.00137
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "83.08"
},
"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": 56,
"rows_produced_per_join": 1,
"filtered": "2.00",
"index_condition": "(`cscart_db`.`cscart_categories`.`id_path` like '458/%')",
"cost_info": {
"read_cost": "25.35",
"eval_cost": "0.11",
"prefix_cost": "25.46",
"data_read_per_join": "3K"
},
"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": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.28",
"eval_cost": "0.11",
"prefix_cost": "25.85",
"data_read_per_join": "3K"
},
"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": 163,
"filtered": "100.00",
"cost_info": {
"read_cost": "40.88",
"eval_cost": "16.35",
"prefix_cost": "83.08",
"data_read_per_join": "277K"
},
"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 |
| 3039 |
2646 |
458/2646/3039 |
Nuts & Seeds |
0 |
A |
0 |
0 |
nuts-and-seeds-en |
458/2646 |
| 2655 |
2654 |
458/2654/2655 |
Bars |
0 |
A |
0 |
0 |
bars |
458/2654 |
| 2645 |
2643 |
458/2643/2645 |
Beverages |
0 |
A |
0 |
0 |
beverages |
458/2643 |
| 2658 |
2654 |
458/2654/2658 |
Chips |
0 |
A |
0 |
0 |
chips |
458/2654 |
| 2663 |
2654 |
458/2654/2663 |
Chocolates |
0 |
A |
0 |
0 |
chocolates |
458/2654 |
| 2662 |
2643 |
458/2643/2662 |
Coffee |
0 |
A |
0 |
0 |
coffee |
458/2643 |
| 2657 |
2654 |
458/2654/2657 |
Cookies & Biscuits |
0 |
A |
0 |
0 |
cookies-and-biscuits |
458/2654 |
| 2666 |
2640 |
458/2640/2666 |
Cooking Paste & Sauces |
0 |
A |
0 |
0 |
cooking-paste-and-sauces |
458/2640 |
| 2660 |
2646 |
458/2646/2660 |
Dried Fruits |
0 |
A |
0 |
0 |
dried-fruits |
458/2646 |
| 2642 |
2640 |
458/2640/2642 |
Grains and Flours |
0 |
A |
0 |
0 |
grains-and-flours |
458/2640 |
| 2653 |
2651 |
458/2651/2653 |
Granola |
0 |
A |
0 |
0 |
granola |
458/2651 |
| 2650 |
2649 |
458/2649/2650 |
Honey |
0 |
A |
0 |
0 |
honey |
458/2649 |
| 2664 |
2649 |
458/2649/2664 |
Jams |
0 |
A |
0 |
0 |
jams |
458/2649 |
| 2652 |
2651 |
458/2651/2652 |
Muesli |
0 |
A |
0 |
0 |
muesli |
458/2651 |
| 2667 |
2654 |
458/2654/2667 |
Namkeens |
0 |
A |
0 |
0 |
namkeens |
458/2654 |
| 2668 |
2649 |
458/2649/2668 |
Nut Butters |
0 |
A |
0 |
0 |
nut-butters |
458/2649 |
| 2648 |
2646 |
458/2646/2648 |
Nuts & Seeds |
0 |
A |
0 |
0 |
nuts-and-seeds |
458/2646 |
| 2656 |
2651 |
458/2651/2656 |
Oats & Porridge |
0 |
A |
0 |
0 |
oats-and-porridge |
458/2651 |
| 2641 |
2640 |
458/2640/2641 |
Oils and Ghee |
0 |
A |
0 |
0 |
oils-and-ghee |
458/2640 |
| 2913 |
2654 |
458/2654/2913 |
Protein Snacks |
0 |
A |
0 |
0 |
protein-snacks |
458/2654 |
| 2659 |
2640 |
458/2640/2659 |
Spices & Masalas |
0 |
A |
0 |
0 |
spices-and-masalas |
458/2640 |
| 2661 |
2649 |
458/2649/2661 |
Spreads |
0 |
A |
0 |
0 |
spreads |
458/2649 |
| 2665 |
2640 |
458/2640/2665 |
Sweeteners |
0 |
A |
0 |
0 |
sweeteners |
458/2640 |
| 2644 |
2643 |
458/2643/2644 |
Tea |
0 |
A |
0 |
0 |
tea |
458/2643 |
| 2647 |
2646 |
458/2646/2647 |
Trail Mixes |
0 |
A |
0 |
0 |
trail-mixes |
458/2646 |
| 2651 |
458 |
458/2651 |
Cereals |
10 |
A |
0 |
0 |
cereals |
458 |
| 3094 |
2215 |
458/2215/3094 |
Premix |
10 |
A |
0 |
0 |
premix |
458/2215 |
| 2643 |
458 |
458/2643 |
Coffee, Tea & Beverages |
20 |
A |
0 |
0 |
coffee-tea-and-beverages |
458 |
| 2640 |
458 |
458/2640 |
Cooking Supplies |
30 |
A |
0 |
0 |
cooking-supplies |
458 |
| 2646 |
458 |
458/2646 |
Dried Fruits, Nuts & Seeds |
40 |
A |
0 |
0 |
dried-fruits-nuts-and-seeds |
458 |
| 2649 |
458 |
458/2649 |
jam, honey, spreads and pickles |
50 |
A |
0 |
0 |
jams-honey-and-spreads |
458 |
| 2654 |
458 |
458/2654 |
Snacks & Sweets |
60 |
A |
0 |
0 |
snacks-and-sweets |
458 |
| 2215 |
458 |
458/2215 |
Ready To Cook |
70 |
A |
0 |
0 |
ready-to-cook |
458 |
| 3093 |
2649 |
458/2649/3093 |
Pickles |
90 |
A |
0 |
0 |
pickles |
458/2649 |