Query time 0.00081
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "33.20"
},
"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": 71,
"rows_produced_per_join": 1,
"filtered": "2.00",
"index_condition": "(`dbggbern`.`cscart_categories`.`id_path` like '59/%')",
"cost_info": {
"read_cost": "32.07",
"eval_cost": "0.14",
"prefix_cost": "32.21",
"data_read_per_join": "5K"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"storefront_id"
],
"attached_condition": "(((`dbggbern`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`dbggbern`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`dbggbern`.`cscart_categories`.`usergroup_ids`))) and (`dbggbern`.`cscart_categories`.`status` = 'A') and (`dbggbern`.`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": [
"dbggbern.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.36",
"eval_cost": "0.14",
"prefix_cost": "32.71",
"data_read_per_join": "4K"
},
"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": [
"dbggbern.cscart_categories.category_id",
"const",
"const",
"const",
"dbggbern.cscart_categories.company_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 1,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.36",
"eval_cost": "0.14",
"prefix_cost": "33.20",
"data_read_per_join": "2K"
},
"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 |
| 110 |
59 |
59/110 |
Sets |
10 |
A |
1 |
1 |
sets |
59 |
| 643 |
110 |
59/110/643 |
Super Slam |
15 |
A |
1 |
1 |
super-slam |
59/110 |
| 116 |
59 |
59/116 |
Displays |
20 |
A |
1 |
1 |
displays |
59 |
| 610 |
110 |
59/110/610 |
High Seas |
20 |
A |
1 |
1 |
high-seas |
59/110 |
| 563 |
110 |
59/110/563 |
The Hunted |
25 |
A |
1 |
1 |
the-hunted |
59/110 |
| 117 |
59 |
59/117 |
Boosters |
30 |
A |
1 |
1 |
boosters |
59 |
| 498 |
110 |
59/110/498 |
Rosetta |
30 |
A |
1 |
1 |
rosetta |
59/110 |
| 456 |
110 |
59/110/456 |
Part the Mistveil |
35 |
A |
1 |
1 |
part-the-mistveil |
59/110 |
| 118 |
59 |
59/118 |
Einsteiger Produkte |
40 |
A |
1 |
1 |
einsteiger-produkte |
59 |
| 414 |
110 |
59/110/414 |
Heavy Hitters |
40 |
A |
1 |
1 |
heavy-hitters |
59/110 |
| 368 |
110 |
59/110/368 |
Bright Lights |
45 |
A |
1 |
1 |
bright-lights |
59/110 |
| 496 |
59 |
59/496 |
Würfel & Tokens |
45 |
A |
1 |
1 |
dice-and-tokens |
59 |
| 274 |
59 |
59/274 |
Art Sleeves |
50 |
A |
1 |
1 |
art-sleeves |
59 |
| 341 |
110 |
59/110/341 |
Dusk till Dawn |
50 |
A |
1 |
1 |
dusk-till-dawn |
59/110 |
| 297 |
110 |
59/110/297 |
History Pack 2 |
55 |
A |
1 |
1 |
history-pack-2 |
59/110 |
| 296 |
110 |
59/110/296 |
Outsiders |
60 |
A |
1 |
1 |
outsiders |
59/110 |
| 254 |
110 |
59/110/254 |
Dynasty |
65 |
A |
1 |
1 |
dynasty |
59/110 |
| 225 |
110 |
59/110/225 |
Uprising |
70 |
A |
1 |
1 |
uprising |
59/110 |
| 222 |
110 |
59/110/222 |
History Pack 1 |
75 |
A |
1 |
1 |
history-pack-1 |
59/110 |
| 158 |
110 |
59/110/158 |
Everfest |
80 |
A |
1 |
1 |
everfest |
59/110 |
| 115 |
110 |
59/110/115 |
Tales of Aria |
85 |
A |
1 |
1 |
tales-of-aria |
59/110 |
| 113 |
110 |
59/110/113 |
Monarch |
90 |
A |
1 |
1 |
monarch |
59/110 |
| 114 |
110 |
59/110/114 |
Crucible of War |
95 |
A |
1 |
1 |
crucible-of-war |
59/110 |
| 112 |
110 |
59/110/112 |
Arcane Rising |
100 |
A |
1 |
1 |
arcane-rising |
59/110 |
| 111 |
110 |
59/110/111 |
Welcome to Rathe |
105 |
A |
1 |
1 |
welcome-to-rathe |
59/110 |
| 633 |
110 |
59/110/633 |
Mastery Pack Guardian Booster |
110 |
A |
1 |
1 |
mastery-pack-guardian-booster |
59/110 |