Query time 0.00241
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "22.99"
},
"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/8100/%')",
"cost_info": {
"read_cost": "22.54",
"eval_cost": "0.02",
"prefix_cost": "22.56",
"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.19",
"eval_cost": "0.02",
"prefix_cost": "22.77",
"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": "22.99",
"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 |
| 8123 |
8100 |
290/8100/8123 |
Audi |
90 |
A |
1 |
audi-ro |
290/8100 |
| 8121 |
8100 |
290/8100/8121 |
Chevrolet |
90 |
A |
1 |
chevrolet-ro-2 |
290/8100 |
| 8120 |
8100 |
290/8100/8120 |
Citroen |
90 |
A |
1 |
citroen-ro-2 |
290/8100 |
| 8108 |
8100 |
290/8100/8108 |
Dacia |
90 |
A |
1 |
dacia-ro |
290/8100 |
| 8119 |
8100 |
290/8100/8119 |
Fiat |
90 |
A |
1 |
fiat-ro-2 |
290/8100 |
| 8118 |
8100 |
290/8100/8118 |
Ford |
90 |
A |
1 |
ford-ro-2 |
290/8100 |
| 8117 |
8100 |
290/8100/8117 |
Honda |
90 |
A |
1 |
honda-ro |
290/8100 |
| 8116 |
8100 |
290/8100/8116 |
Hyundai |
90 |
A |
1 |
hyundai-ro |
290/8100 |
| 8115 |
8100 |
290/8100/8115 |
Kia |
90 |
A |
1 |
kia |
290/8100 |
| 8114 |
8100 |
290/8100/8114 |
Mercedes |
90 |
A |
1 |
mercedes-ro |
290/8100 |
| 8112 |
8100 |
290/8100/8112 |
Mitsubishi |
90 |
A |
1 |
mitsubishi-ro |
290/8100 |
| 8111 |
8100 |
290/8100/8111 |
Nissan |
90 |
A |
1 |
nissan-ro-2 |
290/8100 |
| 8110 |
8100 |
290/8100/8110 |
Opel |
90 |
A |
1 |
opel-ro-2 |
290/8100 |
| 8109 |
8100 |
290/8100/8109 |
Peugeot |
90 |
A |
1 |
peugeot-ro-2 |
290/8100 |
| 8107 |
8100 |
290/8100/8107 |
Renault |
90 |
A |
1 |
renault-ro-2 |
290/8100 |
| 8106 |
8100 |
290/8100/8106 |
Skoda |
90 |
A |
1 |
skoda-ro-2 |
290/8100 |
| 8105 |
8100 |
290/8100/8105 |
Subaru |
90 |
A |
1 |
subaru-ro |
290/8100 |
| 8104 |
8100 |
290/8100/8104 |
Suzuki |
90 |
A |
1 |
suzuki-ro-2 |
290/8100 |
| 8103 |
8100 |
290/8100/8103 |
Toyota |
90 |
A |
1 |
toyota-ro |
290/8100 |
| 23780 |
8100 |
290/8100/23780 |
Volkswagen |
90 |
A |
1 |
volkswagen-ro-6 |
290/8100 |