Query time 0.00100
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "8.11"
},
"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": 6,
"rows_produced_per_join": 0,
"filtered": "1.00",
"index_condition": "(`maniamall_cscart`.`cscart_categories`.`id_path` like '288/2532/%')",
"cost_info": {
"read_cost": "7.97",
"eval_cost": "0.01",
"prefix_cost": "7.98",
"data_read_per_join": "159"
},
"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.06",
"eval_cost": "0.01",
"prefix_cost": "8.04",
"data_read_per_join": "186"
},
"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.06",
"eval_cost": "0.01",
"prefix_cost": "8.11",
"data_read_per_join": "104"
},
"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 |
| 2533 |
2532 |
288/2532/2533 |
Accesorii Lenjerie Intima |
90 |
A |
1 |
accesorii-lenjerie-intima |
288/2532 |
| 2780 |
2647 |
288/2532/2647/2780 |
Chiloti cu Push Up |
90 |
A |
1 |
chiloti-cu-push-up |
288/2532/2647 |
| 2675 |
2674 |
288/2532/2647/2674/2675 |
Ciorapi |
90 |
A |
1 |
ciorapi |
288/2532/2647/2674 |
| 2674 |
2647 |
288/2532/2647/2674 |
Ciorapi si Colanti |
90 |
A |
1 |
ciorapi-si-colanti |
288/2532/2647 |
| 2680 |
2674 |
288/2532/2647/2674/2680 |
Colanti |
90 |
A |
1 |
colanti |
288/2532/2647/2674 |
| 2647 |
2532 |
288/2532/2647 |
Lenjerie Intima Femei |
90 |
A |
1 |
lenjerie-intima-femei |
288/2532 |