Query time 0.00093
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "12.91"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "ref",
"possible_keys": [
"c_status",
"parent",
"id_path"
],
"key": "parent",
"used_key_parts": [
"parent_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 16,
"rows_produced_per_join": 0,
"filtered": "0.31",
"cost_info": {
"read_cost": "11.20",
"eval_cost": "0.01",
"prefix_cost": "12.80",
"data_read_per_join": "132"
},
"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') and (`maniamall_cscart`.`cscart_categories`.`id_path` like '290/19342/19423/%'))"
}
},
{
"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.05",
"eval_cost": "0.01",
"prefix_cost": "12.85",
"data_read_per_join": "155"
},
"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.05",
"eval_cost": "0.01",
"prefix_cost": "12.91",
"data_read_per_join": "86"
},
"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 |
| 20962 |
19423 |
290/19342/19423/20962 |
amortizoare Suspensie Roti Telescoape |
90 |
A |
1 |
amortizoare-suspensie-roti-telescoape-ro |
290/19342/19423 |
| 20963 |
19423 |
290/19342/19423/20963 |
arcuri Suspensie |
90 |
A |
1 |
arcuri-suspensie-ro-2 |
290/19342/19423 |
| 21108 |
19423 |
290/19342/19423/21108 |
bielete Antiruliu |
90 |
A |
1 |
bielete-antiruliu-ro |
290/19342/19423 |
| 21078 |
19423 |
290/19342/19423/21078 |
bielete Directie |
90 |
A |
1 |
bielete-directie-ro |
290/19342/19423 |
| 20983 |
19423 |
290/19342/19423/20983 |
brate Suspensie |
90 |
A |
1 |
brate-suspensie-ro |
290/19342/19423 |
| 19425 |
19423 |
290/19342/19423/19425 |
bucse Bara Stabilizatoare |
90 |
A |
1 |
bucse-bara-stabilizatoare-ro |
290/19342/19423 |
| 20813 |
19423 |
290/19342/19423/20813 |
bucse Brate Suspensie |
90 |
A |
1 |
bucse-brate-suspensie-ro |
290/19342/19423 |
| 21389 |
19423 |
290/19342/19423/21389 |
burdufuri Caseta Directie |
90 |
A |
1 |
burdufuri-caseta-directie-ro |
290/19342/19423 |
| 21584 |
19423 |
290/19342/19423/21584 |
burdufuri Pivoti Si Planetare |
90 |
A |
1 |
burdufuri-pivoti-si-planetare-ro |
290/19342/19423 |
| 21154 |
19423 |
290/19342/19423/21154 |
capeti De Bara |
90 |
A |
1 |
capeti-de-bara-ro |
290/19342/19423 |
| 21107 |
19423 |
290/19342/19423/21107 |
casete Directie |
90 |
A |
1 |
casete-directie-ro |
290/19342/19423 |
| 21040 |
19423 |
290/19342/19423/21040 |
flanse Si Rulmenti Amortizoare |
90 |
A |
1 |
flanse-si-rulmenti-amortizoare-ro |
290/19342/19423 |
| 21571 |
19423 |
290/19342/19423/21571 |
kit Protectie Praf |
90 |
A |
1 |
kit-protectie-praf-ro |
290/19342/19423 |
| 21017 |
19423 |
290/19342/19423/21017 |
pivoti Brate Suspensie |
90 |
A |
1 |
pivoti-brate-suspensie-ro |
290/19342/19423 |
| 19569 |
19423 |
290/19342/19423/19569 |
pompe Servodirectie |
90 |
A |
1 |
pompe-servodirectie-ro |
290/19342/19423 |
| 19424 |
19423 |
290/19342/19423/19424 |
suport Motor Tampon Motor |
90 |
A |
1 |
suport-motor-tampon-motor-ro-2 |
290/19342/19423 |