Query time 0.00245
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "23.69"
},
"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": 20,
"rows_produced_per_join": 0,
"filtered": "1.00",
"index_condition": "(`maniamall_cscart`.`cscart_categories`.`id_path` like '290/3139/%')",
"cost_info": {
"read_cost": "23.24",
"eval_cost": "0.02",
"prefix_cost": "23.26",
"data_read_per_join": "531"
},
"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.20",
"eval_cost": "0.02",
"prefix_cost": "23.48",
"data_read_per_join": "620"
},
"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.20",
"eval_cost": "0.02",
"prefix_cost": "23.70",
"data_read_per_join": "347"
},
"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 |
| 28022 |
16861 |
290/3139/16861/28022 |
Auto, Moto si ATV |
90 |
A |
1 |
auto-moto-si-atv |
290/3139/16861 |
| 16910 |
16909 |
290/3139/16909/16910 |
diverse |
90 |
A |
1 |
diverse-ro-15 |
290/3139/16909 |
| 3389 |
3305 |
290/3139/3305/3389 |
Folie Auto - Ieftina |
90 |
A |
1 |
folie-auto-ieftina |
290/3139/3305 |
| 16908 |
3139 |
290/3139/16908 |
folie Cameleon |
90 |
A |
1 |
folie-cameleon |
290/3139 |
| 16911 |
3139 |
290/3139/16911 |
folie Camuflaj |
90 |
A |
1 |
folie-camuflaj |
290/3139 |
| 16839 |
3139 |
290/3139/16839 |
folie Carbon |
90 |
A |
1 |
folie-carbon |
290/3139 |
| 16907 |
16839 |
290/3139/16839/16907 |
folie Carbon 3d |
90 |
A |
1 |
folie-carbon-3d-ro |
290/3139/16839 |
| 3303 |
3139 |
290/3139/3303 |
Folie Carbon 3d |
90 |
A |
1 |
folie-carbon-3d |
290/3139 |
| 16916 |
16839 |
290/3139/16839/16916 |
folie Carbon 4d |
90 |
A |
1 |
folie-carbon-4d |
290/3139/16839 |
| 16912 |
16839 |
290/3139/16839/16912 |
folie Carbon 5d |
90 |
A |
1 |
folie-carbon-5d |
290/3139/16839 |
| 16909 |
3139 |
290/3139/16909 |
folie Deco Interior |
90 |
A |
1 |
folie-deco-interior |
290/3139 |
| 28024 |
28023 |
290/3139/16861/28022/28023/28024 |
Folie Far |
90 |
A |
1 |
folie-far-ro |
290/3139/16861/28022/28023 |
| 3140 |
3139 |
290/3139/3140 |
Folie Far |
90 |
A |
1 |
folie-far |
290/3139 |
| 16861 |
3139 |
290/3139/16861 |
folie Far - Stop |
90 |
A |
1 |
folie-far-stop |
290/3139 |
| 3305 |
3139 |
290/3139/3305 |
Folie Geamuri Auto |
90 |
A |
1 |
folie-geamuri-auto |
290/3139 |
| 28021 |
3139 |
290/3139/28021 |
Folie Geamuri Cladiri |
90 |
A |
1 |
folie-geamuri-cladiri-ro |
290/3139 |
| 3306 |
3305 |
290/3139/3305/3306 |
Folie Omologata |
90 |
A |
1 |
folie-omologata |
290/3139/3305 |
| 28023 |
28022 |
290/3139/16861/28022/28023 |
Folii Auto |
90 |
A |
1 |
folii-auto-ro |
290/3139/16861/28022 |
| 16847 |
3139 |
290/3139/16847 |
folii Metalice |
90 |
A |
1 |
folii-metalice |
290/3139 |
| 3339 |
3305 |
290/3139/3305/3339 |
Scule Montaj Folie |
90 |
A |
1 |
scule-montaj-folie |
290/3139/3305 |