Query time 0.00084
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "10.47"
},
"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",
"idx_categories_storefront_status",
"idx_categories_usergroup_status",
"idx_categories_status_id_path"
],
"key": "id_path",
"used_key_parts": [
"id_path"
],
"key_length": "767",
"rows_examined_per_scan": 12,
"rows_produced_per_join": 6,
"filtered": "57.24",
"index_condition": "(`cscart_db`.`cscart_categories`.`id_path` like '2426/2504/%')",
"cost_info": {
"read_cost": "4.97",
"eval_cost": "0.69",
"prefix_cost": "5.66",
"data_read_per_join": "19K"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"storefront_id"
],
"attached_condition": "(((`cscart_db`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`cscart_db`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`cscart_db`.`cscart_categories`.`usergroup_ids`))) and (`cscart_db`.`cscart_categories`.`status` = 'A') and (`cscart_db`.`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": [
"cscart_db.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 6,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.72",
"eval_cost": "0.69",
"prefix_cost": "8.06",
"data_read_per_join": "20K"
},
"used_columns": [
"category_id",
"lang_code",
"category"
]
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code"
],
"key_length": "206",
"ref": [
"cscart_db.cscart_categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 6,
"filtered": "100.00",
"cost_info": {
"read_cost": "1.72",
"eval_cost": "0.69",
"prefix_cost": "10.47",
"data_read_per_join": "11K"
},
"used_columns": [
"name",
"object_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
| category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
seo_name |
seo_path |
| 2515 |
2504 |
2426/2504/2515 |
Ateez |
0 |
A |
0 |
0 |
ateez |
2426/2504 |
| 2520 |
2504 |
2426/2504/2520 |
Blackpink |
0 |
A |
0 |
0 |
blackpink |
2426/2504 |
| 2505 |
2504 |
2426/2504/2505 |
BTS |
0 |
A |
0 |
0 |
bts |
2426/2504 |
| 2511 |
2504 |
2426/2504/2511 |
Enhypen |
0 |
A |
0 |
0 |
enhypen |
2426/2504 |
| 2508 |
2504 |
2426/2504/2508 |
Le sserafim |
0 |
A |
0 |
0 |
le-sserafim |
2426/2504 |
| 2512 |
2504 |
2426/2504/2512 |
NCT |
0 |
A |
0 |
0 |
nct |
2426/2504 |
| 2523 |
2504 |
2426/2504/2523 |
New Jeans |
0 |
A |
0 |
0 |
new-jeans |
2426/2504 |
| 2525 |
2504 |
2426/2504/2525 |
Seventeen |
0 |
A |
0 |
0 |
seventeen |
2426/2504 |
| 2517 |
2504 |
2426/2504/2517 |
Shinee |
0 |
A |
0 |
0 |
shinee |
2426/2504 |
| 2507 |
2504 |
2426/2504/2507 |
Stray Kids |
0 |
A |
0 |
0 |
stray-kids |
2426/2504 |
| 2528 |
2504 |
2426/2504/2528 |
Twice |
0 |
A |
0 |
0 |
twice |
2426/2504 |
| 2530 |
2504 |
2426/2504/2530 |
TXT |
0 |
A |
0 |
0 |
txt |
2426/2504 |