Query time 0.00055
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.06950372,
"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": "range",
"possible_keys": ["PRIMARY", "c_status", "parent", "p_category_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"loops": 1,
"rows": 15,
"cost": 0.02687297,
"filtered": 100,
"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.category_id in (325,166,219,266,267,268,269,270,272,273,284,285,288,298,307) and cscart_categories.category_id <> 264 and cscart_categories.parent_id <> 264 and cscart_categories.`level` <= 3 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": [
"u985510652_ecartify_abhi.cscart_categories.category_id",
"const"
],
"loops": 15,
"rows": 1,
"cost": 0.0158742,
"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": [
"u985510652_ecartify_abhi.cscart_categories.category_id",
"const",
"const",
"const"
],
"loops": 15,
"rows": 1,
"cost": 0.02675655,
"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 |
product_count |
seo_name |
seo_path |
| 285 |
0 |
285 |
Clothing |
0 |
A |
0 |
0 |
82796 |
clothing |
|
| 288 |
0 |
288 |
Home Appliances |
0 |
A |
0 |
0 |
82568 |
home-appliances |
|
| 325 |
0 |
325 |
Lighting |
0 |
A |
0 |
0 |
5 |
lighting |
|
| 284 |
0 |
284 |
Sports |
0 |
A |
0 |
0 |
82908 |
sports |
|
| 166 |
0 |
166 |
Electronics |
10 |
A |
0 |
0 |
83156 |
electronics |
|
| 219 |
0 |
219 |
Books |
40 |
A |
0 |
0 |
82789 |
books |
|
| 266 |
0 |
266 |
Replacement Parts |
110 |
A |
0 |
0 |
98 |
replacement-parts |
|
| 267 |
0 |
267 |
Commercial Max |
120 |
A |
0 |
0 |
209 |
commercial-max |
|
| 268 |
0 |
268 |
Accessories |
130 |
A |
0 |
0 |
116 |
accessories |
|
| 269 |
0 |
269 |
Internal Frames |
140 |
A |
0 |
0 |
9 |
internal-frames |
|
| 270 |
0 |
270 |
Mounting Kits |
150 |
A |
0 |
0 |
50 |
mounting-kits |
|
| 272 |
0 |
272 |
Oval Steel Flat Bar |
170 |
A |
0 |
0 |
10 |
oval-steel-flat-bar |
|
| 273 |
0 |
273 |
Oval Steel Canopy |
180 |
A |
0 |
0 |
87 |
oval-steel-canopy |
|