Query time 0.00298
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "17.39"
},
"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": 20,
"rows_produced_per_join": 0,
"filtered": "1.00",
"index_condition": "(`maniamall_cscart`.`cscart_categories`.`id_path` like '297/1005/%')",
"cost_info": {
"read_cost": "16.94",
"eval_cost": "0.02",
"prefix_cost": "16.96",
"data_read_per_join": "531"
},
"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.19",
"eval_cost": "0.02",
"prefix_cost": "17.17",
"data_read_per_join": "620"
},
"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.20",
"eval_cost": "0.02",
"prefix_cost": "17.39",
"data_read_per_join": "347"
},
"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 |
| 1166 |
1005 |
297/1005/1166 |
Adaptoare |
90 |
A |
1 |
adaptoare |
297/1005 |
| 1167 |
1166 |
297/1005/1166/1167 |
Adaptoare USB |
90 |
A |
1 |
adaptoare-usb |
297/1005/1166 |
| 1218 |
1006 |
297/1005/1006/1218 |
Alimentare |
90 |
A |
1 |
alimentare |
297/1005/1006 |
| 2718 |
1176 |
297/1005/1176/2718 |
Cablu Audio Video |
90 |
A |
1 |
cablu-audio-video |
297/1005/1176 |
| 1181 |
1176 |
297/1005/1176/1181 |
Cablu Difuzor |
90 |
A |
1 |
cablu-difuzor |
297/1005/1176 |
| 6853 |
1006 |
297/1005/1006/6853 |
Cablu TV |
90 |
A |
1 |
cablu-tv |
297/1005/1006 |
| 1006 |
1005 |
297/1005/1006 |
Cabluri cu Conectori |
90 |
A |
1 |
cabluri-cu-conectori |
297/1005 |
| 6991 |
1005 |
297/1005/6991 |
Cabluri Date USB |
90 |
A |
1 |
cabluri-date-usb |
297/1005 |
| 1176 |
1005 |
297/1005/1176 |
Cabluri la Rola |
90 |
A |
1 |
cabluri-la-rola |
297/1005 |
| 8779 |
1006 |
297/1005/1006/8779 |
HDMI |
90 |
A |
1 |
hdmi |
297/1005/1006 |
| 1220 |
1166 |
297/1005/1166/1220 |
HDMI si DVI |
90 |
A |
1 |
hdmi-si-dvi |
297/1005/1166 |
| 1040 |
1006 |
297/1005/1006/1040 |
HDMI-DVI |
90 |
A |
1 |
hdmi-dvi |
297/1005/1006 |
| 1194 |
1006 |
297/1005/1006/1194 |
Jack-Jack |
90 |
A |
1 |
jack-jack |
297/1005/1006 |
| 1193 |
1006 |
297/1005/1006/1193 |
Jack-RCA |
90 |
A |
1 |
jack-rca |
297/1005/1006 |
| 1140 |
1005 |
297/1005/1140 |
Mufe Adaptoare |
90 |
A |
1 |
mufe-adaptoare |
297/1005 |
| 1195 |
1006 |
297/1005/1006/1195 |
Optic |
90 |
A |
1 |
optic |
297/1005/1006 |
| 7344 |
1166 |
297/1005/1166/7344 |
RCA |
90 |
A |
1 |
rca |
297/1005/1166 |
| 1139 |
1006 |
297/1005/1006/1139 |
SVGA |
90 |
A |
1 |
svga |
297/1005/1006 |
| 1161 |
1006 |
297/1005/1006/1161 |
USB |
90 |
A |
1 |
usb |
297/1005/1006 |
| 7129 |
1006 |
297/1005/1006/7129 |
VGA |
90 |
A |
1 |
vga |
297/1005/1006 |