Query time 0.00066
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": "ref",
"possible_keys": ["c_status", "parent", "id_path"],
"key": "parent",
"key_length": "3",
"used_key_parts": ["parent_id"],
"ref": ["const"],
"rows": 10,
"filtered": 4.908675671,
"attached_condition": "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' and cscart_categories.id_path like '397/413/%'"
},
"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 |
| 415 |
413 |
397/413/415 |
Antennas |
10 |
A |
1 |
antenna |
397/413 |
| 416 |
413 |
397/413/416 |
Chargers |
20 |
A |
1 |
charger-en |
397/413 |
| 417 |
413 |
397/413/417 |
Carry Accessories |
30 |
A |
1 |
carry-accessories |
397/413 |
| 418 |
413 |
397/413/418 |
Audio Accessories |
40 |
A |
1 |
audio |
397/413 |
| 419 |
413 |
397/413/419 |
Programming Cables |
50 |
A |
1 |
cable |
397/413 |
| 420 |
413 |
397/413/420 |
Batteries |
60 |
A |
1 |
battery |
397/413 |
| 2355 |
413 |
397/413/2355 |
Belt Clips |
70 |
A |
1 |
belt-clips-en |
397/413 |
| 421 |
413 |
397/413/421 |
Misc |
70 |
A |
1 |
misc-en |
397/413 |