Query time 0.00091
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "60.90"
},
"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": 41,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "(`cscart_db`.`cscart_categories`.`id_path` like '2711/%')",
"cost_info": {
"read_cost": "18.63",
"eval_cost": "0.08",
"prefix_cost": "18.71",
"data_read_per_join": "2K"
},
"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.21",
"eval_cost": "0.08",
"prefix_cost": "19.00",
"data_read_per_join": "2K"
},
"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": 119,
"filtered": "100.00",
"cost_info": {
"read_cost": "29.93",
"eval_cost": "11.97",
"prefix_cost": "60.90",
"data_read_per_join": "202K"
},
"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 |
| 2718 |
2717 |
2711/2717/2718 |
Blush |
0 |
A |
0 |
0 |
blush |
2711/2717 |
| 2722 |
2721 |
2711/2721/2722 |
Eye Brow Enhancer |
0 |
A |
0 |
0 |
eye-brow-enhancer |
2711/2721 |
| 2713 |
2712 |
2711/2712/2713 |
Eyelash Curler |
0 |
A |
0 |
0 |
eyelash-curler |
2711/2712 |
| 2850 |
2721 |
2711/2721/2850 |
Eyeliners |
0 |
A |
0 |
0 |
eyeliners |
2711/2721 |
| 2852 |
2721 |
2711/2721/2852 |
Eyeshadows |
0 |
A |
0 |
0 |
eyeshadows |
2711/2721 |
| 2719 |
2717 |
2711/2717/2719 |
Highlighters |
0 |
A |
0 |
0 |
highlighters |
2711/2717 |
| 2997 |
2735 |
2711/2735/2997 |
Kits |
0 |
A |
0 |
0 |
kits |
2711/2735 |
| 3018 |
2731 |
2711/2731/3018 |
Lip Balm |
0 |
A |
0 |
0 |
lip-balm |
2711/2731 |
| 2732 |
2731 |
2711/2731/2732 |
Lip Gloss |
0 |
A |
0 |
0 |
lip-gloss |
2711/2731 |
| 2733 |
2731 |
2711/2731/2733 |
Lip Liner |
0 |
A |
0 |
0 |
lip-liner |
2711/2731 |
| 2859 |
2731 |
2711/2731/2859 |
Lip oils |
0 |
A |
0 |
0 |
lip-oils |
2711/2731 |
| 3007 |
2731 |
2711/2731/3007 |
Lip Tint |
0 |
A |
0 |
0 |
lip-tint |
2711/2731 |
| 2734 |
2731 |
2711/2731/2734 |
Lipstick |
0 |
A |
0 |
0 |
lipstick |
2711/2731 |
| 2714 |
2712 |
2711/2712/2714 |
Makeup Brush |
0 |
A |
0 |
0 |
makeup-brush |
2711/2712 |
| 2715 |
2712 |
2711/2712/2715 |
Makeup Remover |
0 |
A |
0 |
0 |
makeup-remover |
2711/2712 |
| 2725 |
2721 |
2711/2721/2725 |
Mascara |
0 |
A |
0 |
0 |
mascara |
2711/2721 |
| 2736 |
2735 |
2711/2735/2736 |
Nail Polish |
0 |
A |
0 |
0 |
nail-polish |
2711/2735 |
| 2737 |
2735 |
2711/2735/2737 |
Nail Polish Remover |
0 |
A |
0 |
0 |
nail-polish-remover |
2711/2735 |
| 2716 |
2712 |
2711/2712/2716 |
Sponges & Applicator |
0 |
A |
0 |
0 |
sponges-and-applicator |
2711/2712 |
| 2720 |
2717 |
2711/2717/2720 |
Tints |
0 |
A |
0 |
0 |
tints |
2711/2717 |
| 2726 |
2711 |
2711/2726 |
Face |
10 |
A |
0 |
0 |
face |
2711 |
| 2730 |
2726 |
2711/2726/2730 |
Face Primer |
10 |
A |
0 |
0 |
primer |
2711/2726 |
| 3116 |
2721 |
2711/2721/3116 |
Kajal |
10 |
A |
0 |
0 |
kajal |
2711/2721 |
| 2900 |
2735 |
2711/2735/2900 |
Nails Extensions |
10 |
A |
0 |
0 |
nails-extensions |
2711/2735 |
| 2924 |
2712 |
2711/2712/2924 |
Tools |
10 |
A |
0 |
0 |
tools |
2711/2712 |
| 2728 |
2726 |
2711/2726/2728 |
Concealer & Foundation |
20 |
A |
0 |
0 |
concealer-and-foundation |
2711/2726 |
| 2721 |
2711 |
2711/2721 |
Eyes |
20 |
A |
0 |
0 |
eyes |
2711 |
| 2927 |
2735 |
2711/2735/2927 |
Tools and kits |
20 |
A |
0 |
0 |
tools-and-kits |
2711/2735 |
| 2727 |
2726 |
2711/2726/2727 |
Compact |
30 |
A |
0 |
0 |
compact |
2711/2726 |
| 2731 |
2711 |
2711/2731 |
Lips |
30 |
A |
0 |
0 |
lips |
2711 |
| 2851 |
2726 |
2711/2726/2851 |
Blushes |
40 |
A |
0 |
0 |
blushes |
2711/2726 |
| 2717 |
2711 |
2711/2717 |
Cheeks |
40 |
A |
0 |
0 |
cheeks |
2711 |
| 2729 |
2726 |
2711/2726/2729 |
Contour & Bronzer |
40 |
A |
0 |
0 |
contour-and-bronzer |
2711/2726 |
| 2849 |
2726 |
2711/2726/2849 |
Color correctors |
50 |
A |
0 |
0 |
color-correctors |
2711/2726 |
| 2735 |
2711 |
2711/2735 |
Nails |
50 |
A |
0 |
0 |
nails |
2711 |
| 2848 |
2726 |
2711/2726/2848 |
Highlighters |
60 |
A |
0 |
0 |
highlighters |
2711/2726 |
| 3089 |
2712 |
2711/2712/3089 |
Makeup Kits & Combos |
60 |
A |
0 |
0 |
makeup-kits-and-combos |
2711/2712 |
| 2712 |
2711 |
2711/2712 |
Makeup Kit, Tools & Brushes |
70 |
A |
0 |
0 |
tools-and-brushes |
2711 |
| 3005 |
2726 |
2711/2726/3005 |
Makeup Setting & Fixing |
70 |
A |
0 |
0 |
makeup-setting-and-fixing |
2711/2726 |