Query time 0.00283
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "12.85"
},
"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": 11,
"rows_produced_per_join": 0,
"filtered": "1.00",
"index_condition": "(`maniamall_cscart`.`cscart_categories`.`id_path` like '290/8242/%')",
"cost_info": {
"read_cost": "12.60",
"eval_cost": "0.01",
"prefix_cost": "12.61",
"data_read_per_join": "292"
},
"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.11",
"eval_cost": "0.01",
"prefix_cost": "12.73",
"data_read_per_join": "341"
},
"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.11",
"eval_cost": "0.01",
"prefix_cost": "12.85",
"data_read_per_join": "190"
},
"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 |
| 8247 |
8242 |
290/8242/8247 |
Banda Cu Leduri |
90 |
A |
1 |
banda-cu-leduri |
290/8242 |
| 8243 |
8242 |
290/8242/8243 |
Banda Izolatoare Si Dublu Adeziva |
90 |
A |
1 |
banda-izolatoare-si-dublu-adeziva |
290/8242 |
| 21368 |
8242 |
290/8242/21368 |
cutie Sigurante Si Cutie Conectori |
90 |
A |
1 |
cutie-sigurante-si-cutie-conectori-ro |
290/8242 |
| 8346 |
8242 |
290/8242/8346 |
Diverse |
90 |
A |
1 |
diverse-ro-4 |
290/8242 |
| 8476 |
8242 |
290/8242/8476 |
Lamela Cheie Auto |
90 |
A |
1 |
lamela-cheie-auto |
290/8242 |
| 8488 |
8242 |
290/8242/8488 |
Lampi Frane Suplimentare |
90 |
A |
1 |
lampi-frane-suplimentare |
290/8242 |
| 8367 |
8242 |
290/8242/8367 |
Lanterna |
90 |
A |
1 |
lanterna |
290/8242 |
| 8509 |
8242 |
290/8242/8509 |
Mufe Becuri |
90 |
A |
1 |
mufe-becuri |
290/8242 |
| 8244 |
8242 |
290/8242/8244 |
Papuci Electrici |
90 |
A |
1 |
papuci-electrici |
290/8242 |
| 8558 |
8242 |
290/8242/8558 |
Relee Auto |
90 |
A |
1 |
relee-auto |
290/8242 |
| 8571 |
8242 |
290/8242/8571 |
Sigurante Auto |
90 |
A |
1 |
sigurante-auto-ro |
290/8242 |