Query time 0.00174
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "32.68"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"rows_examined_per_scan": 23,
"rows_produced_per_join": 0,
"filtered": "0.67",
"cost_info": {
"read_cost": "32.28",
"eval_cost": "0.03",
"prefix_cost": "32.31",
"data_read_per_join": "930"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"level",
"company_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"storefront_id"
],
"attached_condition": "(((`webmarco`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`webmarco`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`webmarco`.`cscart_categories`.`usergroup_ids`)) and (`webmarco`.`cscart_categories`.`status` = 'A') and (`webmarco`.`cscart_categories`.`level` <= 3) and (`webmarco`.`cscart_categories`.`storefront_id` in (0,1)) and (`webmarco`.`cscart_categories`.`category_id` in (266,327,1695,2599,3648,5831,6473,6875,7012,6328,6340,6907,7335,2653,2658,9276,1584,1309,9401,10311,10193,10197,10511)))"
}
},
{
"table": {
"table_name": "cscart_category_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id",
"lang_code"
],
"key_length": "9",
"ref": [
"webmarco.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.15",
"eval_cost": "0.03",
"prefix_cost": "32.49",
"data_read_per_join": "640"
},
"used_columns": [
"category_id",
"lang_code",
"category"
]
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code"
],
"key_length": "206",
"ref": [
"webmarco.cscart_categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.15",
"eval_cost": "0.03",
"prefix_cost": "32.68",
"data_read_per_join": "266"
},
"used_columns": [
"name",
"object_id",
"company_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
seo_name |
seo_path |
9276 |
2658 |
2653/2658/9276 |
Accessories |
0 |
A |
0 |
0 |
accessories |
2653/2658 |
6875 |
6473 |
6473/6875 |
Building Materials |
0 |
A |
0 |
0 |
building-materials |
6473 |
2658 |
2653 |
2653/2658 |
Clothing |
0 |
A |
0 |
0 |
clothing-en |
2653 |
266 |
0 |
266 |
Services |
0 |
A |
0 |
0 |
services-en |
|
10511 |
10197 |
10193/10197/10511 |
Uniforms |
0 |
A |
0 |
0 |
uniforms |
10193/10197 |
2653 |
0 |
2653 |
Apparel & Accessories |
10 |
A |
0 |
0 |
apparel-and-accessories |
|
6340 |
6328 |
6328/6340 |
Vehicle Parts & Accessories |
10 |
A |
0 |
0 |
vehicle-parts-and-accessories |
6328 |
1584 |
266 |
266/1584 |
Intelligent Electronic Devices & Security |
20 |
A |
0 |
0 |
services-of-electronic |
266 |
1695 |
327 |
266/327/1695 |
Means of Transport |
40 |
A |
0 |
0 |
means-of-transport |
266/327 |
3648 |
0 |
3648 |
Furniture |
50 |
A |
0 |
0 |
furniture |
|
6907 |
6340 |
6328/6340/6907 |
Motor Vehicle Parts |
50 |
A |
0 |
0 |
motor-vehicle-parts |
6328/6340 |
7012 |
6875 |
6473/6875/7012 |
Glass |
60 |
A |
0 |
0 |
glass |
6473/6875 |
1309 |
1584 |
266/1584/1309 |
Security Systems |
100 |
A |
0 |
0 |
security-systems |
266/1584 |
6328 |
0 |
6328 |
Vehicles & Parts |
120 |
A |
0 |
0 |
vehicles-and-parts |
|
6473 |
0 |
6473 |
Hardware |
130 |
A |
0 |
0 |
hardware |
|
327 |
266 |
266/327 |
Rental |
140 |
A |
0 |
0 |
rental |
266 |
5831 |
3648 |
3648/5831 |
Office Furniture Accessories |
1320 |
A |
0 |
0 |
office-furniture-accessories |
3648 |