Query time 0.00064
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 '405/57/3099/%'",
"attached_condition": "cscart_categories.parent_id = 3099 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 |
| 3100 |
3099 |
405/57/3099/3100 |
XPR 2500 |
0 |
A |
1 |
xpr2500-en |
405/57/3099 |
| 3101 |
3099 |
405/57/3099/3101 |
XPR 4350 |
0 |
A |
1 |
xpr4350 |
405/57/3099 |
| 3105 |
3099 |
405/57/3099/3105 |
XPR 4380 |
0 |
A |
1 |
xpr4380 |
405/57/3099 |
| 3102 |
3099 |
405/57/3099/3102 |
XPR 4550 |
0 |
A |
1 |
xpr4550 |
405/57/3099 |
| 3106 |
3099 |
405/57/3099/3106 |
XPR 4580 |
0 |
A |
1 |
xpr4580 |
405/57/3099 |
| 3103 |
3099 |
405/57/3099/3103 |
XPR 5350 |
0 |
A |
1 |
xpr5350 |
405/57/3099 |
| 3107 |
3099 |
405/57/3099/3107 |
XPR 5380 |
0 |
A |
1 |
xpr5380 |
405/57/3099 |
| 3104 |
3099 |
405/57/3099/3104 |
XPR 5550 |
0 |
A |
1 |
xpr5550 |
405/57/3099 |
| 3108 |
3099 |
405/57/3099/3108 |
XPR 5580 |
0 |
A |
1 |
xpr5580 |
405/57/3099 |