Query time 0.00069
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "cscart_categories.is_trash, cscart_categories.position, cscart_category_descriptions.category",
"temporary_table": {
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": ["c_status", "parent", "id_path"],
"key": "id_path",
"key_length": "767",
"used_key_parts": ["id_path"],
"rowid_filter": {
"range": {
"key": "parent",
"used_key_parts": ["parent_id"]
},
"rows": 8,
"selectivity_pct": 0.304414003
},
"rows": 6,
"filtered": 0.304414004,
"index_condition": "cscart_categories.id_path like '401/1027/%'",
"attached_condition": "cscart_categories.parent_id = 1027 and cscart_categories.company_id = 1 and (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'"
},
"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": ["rfswire_cart.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": "eq_ref",
"possible_keys": ["PRIMARY", "dispatch"],
"key": "PRIMARY",
"key_length": "210",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code",
"company_id"
],
"ref": [
"rfswire_cart.cscart_categories.category_id",
"const",
"const",
"const",
"const"
],
"rows": 1,
"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 |
seo_name |
seo_path |
| 1028 |
1027 |
401/1027/1028 |
RF Adapters |
10 |
A |
1 |
rf-adapters |
401/1027 |
| 1029 |
1027 |
401/1027/1029 |
Replacement Accessories for Tactical Head Units |
20 |
A |
1 |
replacement-accessories-for-tactical-head-units |
401/1027 |
| 1030 |
1027 |
401/1027/1030 |
Parts for Ear Muff headsets |
30 |
A |
1 |
parts-for-ear-muff-headsets |
401/1027 |
| 1031 |
1027 |
401/1027/1031 |
Misc Repair Parts |
40 |
A |
1 |
misc-repair-parts |
401/1027 |
| 1032 |
1027 |
401/1027/1032 |
Individual Repair Parts |
50 |
A |
1 |
individual-repair-parts |
401/1027 |
| 1033 |
1027 |
401/1027/1033 |
Ear Buds - Ear Molds - Foam Inserts |
60 |
A |
1 |
ear-buds-ear-molds-foam-inserts |
401/1027 |
| 1034 |
1027 |
401/1027/1034 |
Antennas (for Amateur Radio) |
70 |
A |
1 |
antennas-for-amateur-radio |
401/1027 |
| 1035 |
1027 |
401/1027/1035 |
Acoustic Tube Repair/Replacement Kits and individual parts |
80 |
A |
1 |
acoustic-tube-repair-replacement-kits-and-individual-parts |
401/1027 |
| 2537 |
1027 |
401/1027/2537 |
SNAP Accessories |
90 |
A |
1 |
snap-accessories |
401/1027 |