Query time 0.09800
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "14.11"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "ref",
"possible_keys": [
"c_status",
"parent",
"id_path"
],
"key": "parent",
"used_key_parts": [
"parent_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 15,
"rows_produced_per_join": 0,
"filtered": "0.33",
"cost_info": {
"read_cost": "12.50",
"eval_cost": "0.01",
"prefix_cost": "14.00",
"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') and (`maniamall_cscart`.`cscart_categories`.`id_path` like '286/295/12291/%'))"
}
},
{
"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": "14.05",
"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": "14.11",
"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 |
| 36103 |
12291 |
286/295/12291/36103 |
Fierastraie Electrice |
5 |
A |
1 |
fierastraie-electrice |
286/295/12291 |
| 12377 |
12291 |
286/295/12291/12377 |
Ferastraie Circulare |
10 |
A |
1 |
ferastraie-circulare |
286/295/12291 |
| 36065 |
12291 |
286/295/12291/36065 |
Masini de Gaurit si Insurubat |
25 |
A |
1 |
masini-de-gaurit-si-insurubat-ro |
286/295/12291 |
| 12347 |
12291 |
286/295/12291/12347 |
Bormasini |
50 |
A |
1 |
bormasini |
286/295/12291 |
| 12526 |
12291 |
286/295/12291/12526 |
Polizoare De Banc |
65 |
A |
1 |
polizoare-de-banc |
286/295/12291 |
| 12326 |
12291 |
286/295/12291/12326 |
Polizoare Unghiulare |
70 |
A |
1 |
polizoare-unghiulare-ro |
286/295/12291 |
| 36061 |
12291 |
286/295/12291/36061 |
Polizoare |
75 |
A |
1 |
polizoare-ro-2 |
286/295/12291 |
| 36125 |
12291 |
286/295/12291/36125 |
Masini de Frezat |
77 |
A |
1 |
masini-de-frezat-ro |
286/295/12291 |
| 12531 |
12291 |
286/295/12291/12531 |
Masini De Polisat |
80 |
A |
1 |
masini-de-polisat |
286/295/12291 |
| 36127 |
12291 |
286/295/12291/36127 |
Generatoare electrice |
82 |
A |
1 |
generatoare-electrice-ro |
286/295/12291 |
| 36099 |
12291 |
286/295/12291/36099 |
Mixere Electrice |
87 |
A |
1 |
mixere-electrice-ro |
286/295/12291 |
| 12450 |
12291 |
286/295/12291/12450 |
Rindele Electrice |
88 |
A |
1 |
rindele-electrice-ro |
286/295/12291 |
| 12517 |
12291 |
286/295/12291/12517 |
Slefuitoare |
89 |
A |
1 |
slefuitoare-ro |
286/295/12291 |
| 40143 |
12291 |
286/295/12291/40143 |
Strunguri pentru Lemn |
90 |
A |
1 |
strunguri-pentru-lemn-ro |
286/295/12291 |
| 41069 |
12291 |
286/295/12291/41069 |
Masini si Unelte pentru Prelucrare Tabla |
92 |
A |
1 |
masini-si-unelte-pentru-prelucrare-tabla |
286/295/12291 |