Query time 0.00007
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "cscart_categories.is_trash, cscart_categories.position, cscart_category_descriptions.category",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"c_status",
"parent",
"id_path",
"p_category_id"
],
"key": "parent",
"key_length": "3",
"used_key_parts": ["parent_id"],
"ref": ["const"],
"rowid_filter": {
"range": {
"key": "id_path",
"used_key_parts": ["id_path"]
},
"rows": 55,
"selectivity_pct": 2.059925094
},
"rows": 24,
"filtered": 2.059925079,
"attached_condition": "(cscart_categories.usergroup_ids = '' or find_in_set(0,cscart_categories.usergroup_ids) or find_in_set(1,cscart_categories.usergroup_ids)) and cscart_categories.`status` = 'A' and cscart_categories.id_path like '18318/18319/%' and cscart_categories.category_id <> 1 and cscart_categories.storefront_id in (0,1)"
}
},
{
"table": {
"table_name": "cscart_category_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["category_id", "lang_code"],
"ref": ["ebonza_cscart_test.cscart_categories.category_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_category_descriptions.lang_code = 'en')"
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "ref",
"possible_keys": ["PRIMARY", "dispatch"],
"key": "PRIMARY",
"key_length": "206",
"used_key_parts": ["object_id", "type", "dispatch", "lang_code"],
"ref": [
"ebonza_cscart_test.cscart_categories.category_id",
"const",
"const",
"const"
],
"rows": 16,
"filtered": 100,
"attached_condition": "trigcond(cscart_seo_names.`type` = 'c' and cscart_seo_names.dispatch = '' and cscart_seo_names.lang_code = 'en')"
}
}
]
}
}
}
}
Result
| category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
seo_name |
seo_path |
| 18348 |
18319 |
18318/18319/18348 |
Conductivity Gels & Lotions |
1 |
A |
0 |
1 |
conductivity-gels-lotions |
18318/18319 |
| 18320 |
18319 |
18318/18319/18320 |
Acupuncture |
2 |
A |
0 |
1 |
acupuncture |
18318/18319 |
| 18349 |
18319 |
18318/18319/18349 |
Contraceptive Cases |
2 |
A |
0 |
1 |
contraceptive-cases |
18318/18319 |
| 18323 |
18319 |
18318/18319/18323 |
Bed Pans |
3 |
A |
0 |
1 |
bed-pans |
18318/18319 |
| 18333 |
18319 |
18318/18319/18333 |
Biometric Monitors & Acc |
4 |
A |
0 |
1 |
biometric-monitors |
18318/18319 |
| 18347 |
18319 |
18318/18319/18347 |
Condoms |
5 |
A |
0 |
1 |
condoms |
18318/18319 |
| 18350 |
18319 |
18318/18319/18350 |
First Aid |
6 |
A |
0 |
1 |
first-aid |
18318/18319 |
| 18360 |
18319 |
18318/18319/18360 |
Fitness & Nutrition |
7 |
A |
0 |
1 |
fitness-nutrition |
18318/18319 |
| 18367 |
18319 |
18318/18319/18367 |
Hearing Aids |
8 |
A |
0 |
1 |
hearing-aids |
18318/18319 |
| 18368 |
18319 |
18318/18319/18368 |
Incontinence Aids |
9 |
A |
0 |
1 |
incontinence-aids |
18318/18319 |
| 18369 |
18319 |
18318/18319/18369 |
Light Therapy Lamps |
10 |
A |
0 |
1 |
light-therapy-lamps |
18318/18319 |
| 18370 |
18319 |
18318/18319/18370 |
Medical Alarm Systems |
11 |
A |
0 |
1 |
medical-alarm-systems |
18318/18319 |
| 18371 |
18319 |
18318/18319/18371 |
Medical Identification Tags & Jewelry |
12 |
A |
0 |
1 |
medical-identification-tags-jewelry |
18318/18319 |
| 18372 |
18319 |
18318/18319/18372 |
Medical Tests |
13 |
A |
0 |
1 |
medical-tests |
18318/18319 |
| 18379 |
18319 |
18318/18319/18379 |
Medicine & Drugs |
17 |
A |
0 |
1 |
medicine-drugs |
18318/18319 |
| 18380 |
18319 |
18318/18319/18380 |
Mobility & Accessibility |
18 |
A |
0 |
1 |
mobility-accessibility |
18318/18319 |
| 18394 |
18319 |
18318/18319/18394 |
Occupational & Physical Therapy Equipment |
19 |
A |
0 |
1 |
occupational-physical-therapy-equipment |
18318/18319 |
| 18397 |
18319 |
18318/18319/18397 |
Pillboxes |
20 |
A |
0 |
1 |
pillboxes |
18318/18319 |
| 18398 |
18319 |
18318/18319/18398 |
Respiratory Care |
21 |
A |
0 |
1 |
respiratory-care |
18318/18319 |
| 18404 |
18319 |
18318/18319/18404 |
Specimen Cups |
22 |
A |
0 |
1 |
specimen-cups |
18318/18319 |
| 18405 |
18319 |
18318/18319/18405 |
Spermicides |
23 |
A |
0 |
1 |
spermicides |
18318/18319 |
| 18406 |
18319 |
18318/18319/18406 |
Stump Shrinkers |
24 |
A |
0 |
1 |
stump-shrinkers |
18318/18319 |
| 18407 |
18319 |
18318/18319/18407 |
Supports & Braces |
25 |
A |
0 |
1 |
supports-braces |
18318/18319 |
| 18408 |
18319 |
18318/18319/18408 |
Surgical Lubricants |
26 |
A |
0 |
1 |
surgical-lubricants |
18318/18319 |