Query time 0.00288
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "12.85"
},
"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": 12,
"rows_produced_per_join": 0,
"filtered": "1.00",
"index_condition": "(`maniamall_cscart`.`cscart_categories`.`id_path` like '290/23498/%')",
"cost_info": {
"read_cost": "12.58",
"eval_cost": "0.01",
"prefix_cost": "12.59",
"data_read_per_join": "318"
},
"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.12",
"eval_cost": "0.01",
"prefix_cost": "12.72",
"data_read_per_join": "372"
},
"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.12",
"eval_cost": "0.01",
"prefix_cost": "12.86",
"data_read_per_join": "208"
},
"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 |
| 23766 |
23501 |
290/23498/23499/23500/23501/23766 |
Antene Auto |
90 |
A |
1 |
antene-auto-ro-4 |
290/23498/23499/23500/23501 |
| 23504 |
23501 |
290/23498/23499/23500/23501/23504 |
Audio |
90 |
A |
1 |
audio-ro-14 |
290/23498/23499/23500/23501 |
| 23728 |
23501 |
290/23498/23499/23500/23501/23728 |
Boxe |
90 |
A |
1 |
boxe-ro-3 |
290/23498/23499/23500/23501 |
| 23502 |
23501 |
290/23498/23499/23500/23501/23502 |
Card |
90 |
A |
1 |
card |
290/23498/23499/23500/23501 |
| 23501 |
23500 |
290/23498/23499/23500/23501 |
Cb |
90 |
A |
1 |
cb-ro |
290/23498/23499/23500 |
| 23664 |
23663 |
290/23498/23499/23500/23501/23663/23664 |
Conectori |
90 |
A |
1 |
conectori |
290/23498/23499/23500/23501/23663 |
| 23663 |
23501 |
290/23498/23499/23500/23501/23663 |
Mufe |
90 |
A |
1 |
mufe |
290/23498/23499/23500/23501 |
| 23500 |
23499 |
290/23498/23499/23500 |
Radio |
90 |
A |
1 |
radio-ro |
290/23498/23499 |
| 23775 |
23501 |
290/23498/23499/23500/23501/23775 |
Statii Radio Si Antene |
90 |
A |
1 |
statii-radio-si-antene-ro |
290/23498/23499/23500/23501 |
| 23503 |
23502 |
290/23498/23499/23500/23501/23502/23503 |
Usb |
90 |
A |
1 |
usb-ro |
290/23498/23499/23500/23501/23502 |
| 23499 |
23498 |
290/23498/23499 |
Video |
90 |
A |
1 |
video-ro-3 |
290/23498 |
| 23505 |
23504 |
290/23498/23499/23500/23501/23504/23505 |
Video |
90 |
A |
1 |
video-ro-4 |
290/23498/23499/23500/23501/23504 |