Query time 0.00104
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "17.57"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": [
"c_status",
"id_path"
],
"key": "id_path",
"used_key_parts": [
"id_path"
],
"key_length": "767",
"rows_examined_per_scan": 17,
"rows_produced_per_join": 0,
"filtered": "1.00",
"index_condition": "(`maniamall_cscart`.`cscart_categories`.`id_path` like '290/8204/%')",
"cost_info": {
"read_cost": "17.19",
"eval_cost": "0.02",
"prefix_cost": "17.21",
"data_read_per_join": "451"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"position",
"is_trash"
],
"attached_condition": "((`maniamall_cscart`.`cscart_categories`.`company_id` = 1) and ((`maniamall_cscart`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`maniamall_cscart`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`maniamall_cscart`.`cscart_categories`.`usergroup_ids`))) and (`maniamall_cscart`.`cscart_categories`.`status` = 'A'))"
}
},
{
"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": [
"maniamall_cscart.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.16",
"eval_cost": "0.02",
"prefix_cost": "17.39",
"data_read_per_join": "527"
},
"used_columns": [
"category_id",
"lang_code",
"category"
]
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code",
"company_id"
],
"key_length": "210",
"ref": [
"maniamall_cscart.cscart_categories.category_id",
"const",
"const",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.17",
"eval_cost": "0.02",
"prefix_cost": "17.57",
"data_read_per_join": "295"
},
"used_columns": [
"name",
"object_id",
"company_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
| category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
seo_name |
seo_path |
| 8205 |
8204 |
290/8204/8205 |
Amortizoare Suspensie Roti Telescoape |
90 |
A |
1 |
amortizoare-suspensie-roti-telescoape |
290/8204 |
| 8226 |
8204 |
290/8204/8226 |
Arcuri Suspensie |
90 |
A |
1 |
arcuri-suspensie |
290/8204 |
| 8262 |
8204 |
290/8204/8262 |
Bielete Antiruliu |
90 |
A |
1 |
bielete-antiruliu |
290/8204 |
| 8263 |
8204 |
290/8204/8263 |
Bielete Directie |
90 |
A |
1 |
bielete-directie |
290/8204 |
| 8274 |
8204 |
290/8204/8274 |
Brate Suspensie |
90 |
A |
1 |
brate-suspensie |
290/8204 |
| 8283 |
8204 |
290/8204/8283 |
Bucse Bara Stabilizatoare |
90 |
A |
1 |
bucse-bara-stabilizatoare |
290/8204 |
| 8284 |
8204 |
290/8204/8284 |
Bucse Brate Suspensie |
90 |
A |
1 |
bucse-brate-suspensie |
290/8204 |
| 8282 |
8204 |
290/8204/8282 |
Bucse Punte Fata Bucse Punte Spate |
90 |
A |
1 |
bucse-punte-fata-bucse-punte-spate |
290/8204 |
| 8289 |
8204 |
290/8204/8289 |
Burdufuri Caseta Directie |
90 |
A |
1 |
burdufuri-caseta-directie |
290/8204 |
| 8290 |
8204 |
290/8204/8290 |
Burdufuri Pivoti Si Planetare |
90 |
A |
1 |
burdufuri-pivoti-si-planetare |
290/8204 |
| 8328 |
8204 |
290/8204/8328 |
Capeti De Bara |
90 |
A |
1 |
capeti-de-bara |
290/8204 |
| 8348 |
8204 |
290/8204/8348 |
Casete Directie |
90 |
A |
1 |
casete-directie |
290/8204 |
| 8281 |
8204 |
290/8204/8281 |
Flanse Si Rulmenti Amortizoare |
90 |
A |
1 |
flanse-si-rulmenti-amortizoare |
290/8204 |
| 8471 |
8204 |
290/8204/8471 |
Kit Protectie Praf |
90 |
A |
1 |
kit-protectie-praf |
290/8204 |
| 8538 |
8204 |
290/8204/8538 |
Pivoti Brate Suspensie |
90 |
A |
1 |
pivoti-brate-suspensie |
290/8204 |
| 8544 |
8204 |
290/8204/8544 |
Pompe Servodirectie |
90 |
A |
1 |
pompe-servodirectie |
290/8204 |
| 8617 |
8204 |
290/8204/8617 |
Suport Motor Tampon Motor |
90 |
A |
1 |
suport-motor-tampon-motor |
290/8204 |