Query time 0.00053
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "2.29"
},
"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": 11,
"rows_produced_per_join": 0,
"filtered": "2.50",
"cost_info": {
"read_cost": "1.00",
"eval_cost": "0.03",
"prefix_cost": "2.10",
"data_read_per_join": "1K"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"storefront_id",
"usergroup_ids",
"status",
"position",
"is_trash"
],
"attached_condition": "((`gaseus`.`cscart_categories`.`company_id` = 1) and ((`gaseus`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`gaseus`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`gaseus`.`cscart_categories`.`usergroup_ids`))) and (`gaseus`.`cscart_categories`.`status` = 'A') and (`gaseus`.`cscart_categories`.`id_path` like '265/280/291/%') and (`gaseus`.`cscart_categories`.`storefront_id` in (0,1)))"
}
},
{
"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": [
"gaseus.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.07",
"eval_cost": "0.03",
"prefix_cost": "2.20",
"data_read_per_join": "853"
},
"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": [
"gaseus.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.07",
"eval_cost": "0.03",
"prefix_cost": "2.29",
"data_read_per_join": "477"
},
"used_columns": [
"name",
"object_id",
"company_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
| category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
seo_name |
seo_path |
| 309 |
291 |
265/280/291/309 |
Gauges |
0 |
A |
1 |
1 |
gauges |
265/280/291 |
| 292 |
291 |
265/280/291/292 |
Flexible Hoses |
10 |
A |
1 |
1 |
flexible-hoses |
265/280/291 |
| 293 |
291 |
265/280/291/293 |
Relief Valves |
20 |
A |
1 |
1 |
relief-valves |
265/280/291 |
| 294 |
291 |
265/280/291/294 |
Purge Valves |
30 |
A |
1 |
1 |
purge-valves |
265/280/291 |
| 295 |
291 |
265/280/291/295 |
Check Valves |
40 |
A |
1 |
1 |
check-valves |
265/280/291 |
| 290 |
291 |
265/280/291/290 |
Shut-off Valves |
40 |
A |
1 |
1 |
shut-off-valves |
265/280/291 |
| 300 |
291 |
265/280/291/300 |
Alarm box |
50 |
A |
1 |
1 |
alarm-box |
265/280/291 |
| 302 |
291 |
265/280/291/302 |
Seal |
60 |
A |
1 |
1 |
seal |
265/280/291 |
| 303 |
291 |
265/280/291/303 |
Preheater |
70 |
A |
1 |
1 |
preheater |
265/280/291 |
| 304 |
291 |
265/280/291/304 |
O-Ring |
80 |
A |
1 |
1 |
o-ring |
265/280/291 |
| 305 |
291 |
265/280/291/305 |
Signaling device |
90 |
A |
1 |
1 |
signaling-device |
265/280/291 |