Query time 0.09853
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "6.52"
},
"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": 5,
"rows_produced_per_join": 0,
"filtered": "1.00",
"index_condition": "(`maniamall_cscart`.`cscart_categories`.`id_path` like '290/8190/%')",
"cost_info": {
"read_cost": "6.40",
"eval_cost": "0.01",
"prefix_cost": "6.41",
"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'))"
}
},
{
"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": "6.46",
"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": "6.52",
"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 |
| 8309 |
8190 |
290/8190/8309 |
Adaptoare Cablu Rca Jack |
90 |
A |
1 |
adaptoare-cablu-rca-jack |
290/8190 |
| 8405 |
8190 |
290/8190/8405 |
Diverse Articole Bricolaj |
90 |
A |
1 |
diverse-articole-bricolaj |
290/8190 |
| 8397 |
8190 |
290/8190/8397 |
Geanta Scule Cutii Depozitare Si Sortare |
90 |
A |
1 |
geanta-scule-cutii-depozitare-si-sortare |
290/8190 |
| 8364 |
8190 |
290/8190/8364 |
Instrumente Lipire Si Sudura |
90 |
A |
1 |
instrumente-lipire-si-sudura |
290/8190 |
| 8191 |
8190 |
290/8190/8191 |
Prize Stechere Prelungitoare |
90 |
A |
1 |
prize-stechere-prelungitoare |
290/8190 |