Query time 0.00228
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "28.95"
},
"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": 25,
"rows_produced_per_join": 0,
"filtered": "1.00",
"index_condition": "(`maniamall_cscart`.`cscart_categories`.`id_path` like '287/1077/%')",
"cost_info": {
"read_cost": "28.38",
"eval_cost": "0.03",
"prefix_cost": "28.41",
"data_read_per_join": "664"
},
"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.24",
"eval_cost": "0.03",
"prefix_cost": "28.68",
"data_read_per_join": "776"
},
"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.25",
"eval_cost": "0.03",
"prefix_cost": "28.95",
"data_read_per_join": "434"
},
"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 |
| 41498 |
1077 |
287/1077/41498 |
Aparate de Facut Carnati |
0 |
A |
1 |
aparate-de-facut-carnati-ro |
287/1077 |
| 41496 |
1077 |
287/1077/41496 |
Masini de Tocat si Maruntit |
0 |
A |
1 |
masini-de-tocat-si-maruntit |
287/1077 |
| 41499 |
41496 |
287/1077/41496/41499 |
Masini de Tocat Carne |
10 |
A |
1 |
masini-de-tocat-carne |
287/1077/41496 |
| 7224 |
1077 |
287/1077/7224 |
Aparate de Facut Paste |
90 |
A |
1 |
aparate-de-facut-paste |
287/1077 |
| 1595 |
1077 |
287/1077/1595 |
Aparate de Gatit |
90 |
A |
1 |
aparate-de-gatit |
287/1077 |
| 1124 |
1077 |
287/1077/1124 |
Aparate de Gatit cu Aburi si Deshidratoare |
90 |
A |
1 |
aparate-de-gatit-cu-aburi-si-deshidratoare |
287/1077 |
| 5602 |
1077 |
287/1077/5602 |
Aparate de preparat desert |
90 |
A |
1 |
aparate-de-preparat-desert |
287/1077 |
| 6554 |
1077 |
287/1077/6554 |
Aparate pentru Popcorn si Vata de Zahar |
90 |
A |
1 |
aparate-pentru-popcorn-si-vata-de-zahar |
287/1077 |
| 1286 |
1077 |
287/1077/1286 |
Blendere |
90 |
A |
1 |
blendere |
287/1077 |
| 1126 |
1077 |
287/1077/1126 |
Cantare de Bucatarie |
90 |
A |
1 |
cantare-de-bucatarie |
287/1077 |
| 1606 |
1077 |
287/1077/1606 |
Cuptoare Electrice |
90 |
A |
1 |
cuptoare-electrice |
287/1077 |
| 2528 |
1124 |
287/1077/1124/2528 |
Deshidratoare |
90 |
A |
1 |
deshidratoare |
287/1077/1124 |
| 5778 |
1077 |
287/1077/5778 |
Feliatoare |
90 |
A |
1 |
feliatoare |
287/1077 |
| 1123 |
1077 |
287/1077/1123 |
Fierbatoare |
90 |
A |
1 |
fierbatoare |
287/1077 |
| 1604 |
1077 |
287/1077/1604 |
Friteuze |
90 |
A |
1 |
friteuze |
287/1077 |
| 2514 |
1077 |
287/1077/2514 |
Gratare Grill |
90 |
A |
1 |
gratare-grill |
287/1077 |
| 2632 |
1077 |
287/1077/2632 |
Hote |
90 |
A |
1 |
hote |
287/1077 |
| 42584 |
1077 |
287/1077/42584 |
Masini De Tocat Carne |
90 |
A |
1 |
masini-de-tocat-carne-ro |
287/1077 |
| 1125 |
1077 |
287/1077/1125 |
Mixere |
90 |
A |
1 |
mixere |
287/1077 |
| 2570 |
1077 |
287/1077/2570 |
Plite Electrice |
90 |
A |
1 |
plite-electrice |
287/1077 |
| 2489 |
1077 |
287/1077/2489 |
Prajitoare de Paine |
90 |
A |
1 |
prajitoare-de-paine |
287/1077 |
| 1122 |
1077 |
287/1077/1122 |
Rasnite Electrice |
90 |
A |
1 |
rasnite-electrice |
287/1077 |
| 1619 |
1077 |
287/1077/1619 |
Roboti de Bucatarie |
90 |
A |
1 |
roboti-de-bucatarie |
287/1077 |
| 1584 |
1077 |
287/1077/1584 |
Sandwich Maker |
90 |
A |
1 |
sandwich-maker |
287/1077 |
| 1291 |
1077 |
287/1077/1291 |
Storcatoare de Fructe |
90 |
A |
1 |
storcatoare-de-fructe |
287/1077 |