Query time 0.00085
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "12.13"
},
"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": 10,
"rows_produced_per_join": 0,
"filtered": "1.00",
"index_condition": "(`maniamall_cscart`.`cscart_categories`.`id_path` like '290/8399/%')",
"cost_info": {
"read_cost": "11.90",
"eval_cost": "0.01",
"prefix_cost": "11.91",
"data_read_per_join": "265"
},
"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.10",
"eval_cost": "0.01",
"prefix_cost": "12.02",
"data_read_per_join": "310"
},
"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.10",
"eval_cost": "0.01",
"prefix_cost": "12.13",
"data_read_per_join": "173"
},
"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 |
| 8581 |
8399 |
290/8399/8581 |
Bare Portbagaj Audi |
90 |
A |
1 |
bare-portbagaj-audi |
290/8399 |
| 8574 |
8399 |
290/8399/8574 |
Bare Portbagaj Citroen |
90 |
A |
1 |
bare-portbagaj-citroen |
290/8399 |
| 8582 |
8399 |
290/8399/8582 |
Bare Portbagaj Dacia |
90 |
A |
1 |
bare-portbagaj-dacia |
290/8399 |
| 8583 |
8399 |
290/8399/8583 |
Bare Portbagaj Ford |
90 |
A |
1 |
bare-portbagaj-ford |
290/8399 |
| 8575 |
8399 |
290/8399/8575 |
Bare Portbagaj Honda |
90 |
A |
1 |
bare-portbagaj-honda |
290/8399 |
| 8577 |
8399 |
290/8399/8577 |
Bare Portbagaj Hyundai |
90 |
A |
1 |
bare-portbagaj-hyundai |
290/8399 |
| 8579 |
8399 |
290/8399/8579 |
Bare Portbagaj Opel |
90 |
A |
1 |
bare-portbagaj-opel |
290/8399 |
| 8576 |
8399 |
290/8399/8576 |
Bare Portbagaj Peugeot |
90 |
A |
1 |
bare-portbagaj-peugeot |
290/8399 |
| 8580 |
8399 |
290/8399/8580 |
Bare Portbagaj Seat |
90 |
A |
1 |
bare-portbagaj-seat |
290/8399 |
| 8400 |
8399 |
290/8399/8400 |
Cutie Portbagaj Auto |
90 |
A |
1 |
cutie-portbagaj-auto |
290/8399 |