Query time 0.00147
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "9.88"
},
"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": 8,
"rows_produced_per_join": 0,
"filtered": "1.00",
"index_condition": "(`maniamall_cscart`.`cscart_categories`.`id_path` like '297/1000/%')",
"cost_info": {
"read_cost": "9.70",
"eval_cost": "0.01",
"prefix_cost": "9.71",
"data_read_per_join": "212"
},
"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.08",
"eval_cost": "0.01",
"prefix_cost": "9.80",
"data_read_per_join": "248"
},
"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.08",
"eval_cost": "0.01",
"prefix_cost": "9.88",
"data_read_per_join": "138"
},
"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 |
| 31174 |
1001 |
297/1000/1001/31174 |
Manusi Touchscreen |
0 |
A |
1 |
manusi-touchscreen |
297/1000/1001 |
| 1001 |
1000 |
297/1000/1001 |
Accesorii Telefoane |
90 |
A |
1 |
accesorii-telefoane |
297/1000 |
| 21681 |
1001 |
297/1000/1001/21681 |
alte Accesorii Telefoane |
90 |
A |
1 |
alte-accesorii-telefoane-ro |
297/1000/1001 |
| 21656 |
1001 |
297/1000/1001/21656 |
cabluri De Date |
90 |
A |
1 |
cabluri-de-date |
297/1000/1001 |
| 1156 |
1001 |
297/1000/1001/1156 |
Huse Telefoane |
90 |
A |
1 |
huse-telefoane |
297/1000/1001 |
| 2920 |
1001 |
297/1000/1001/2920 |
Incarcatoare Auto |
90 |
A |
1 |
incarcatoare-auto-ro |
297/1000/1001 |
| 1188 |
1000 |
297/1000/1188 |
Smartphone si Smartwatch |
90 |
A |
1 |
smartphone-si-smartwatch |
297/1000 |
| 1199 |
1000 |
297/1000/1199 |
Telefoane Fixe si Mobile |
90 |
A |
1 |
telefoane-fixe-si-mobile |
297/1000 |