Query time 0.00087
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "42.95"
},
"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": 92,
"rows_produced_per_join": 1,
"filtered": "2.00",
"index_condition": "(`dbggbern`.`cscart_categories`.`id_path` like '7/%')",
"cost_info": {
"read_cost": "41.48",
"eval_cost": "0.18",
"prefix_cost": "41.66",
"data_read_per_join": "7K"
},
"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.46",
"eval_cost": "0.18",
"prefix_cost": "42.30",
"data_read_per_join": "5K"
},
"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.46",
"eval_cost": "0.18",
"prefix_cost": "42.95",
"data_read_per_join": "3K"
},
"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 |
| 551 |
22 |
7/22/551 |
Squaroes |
8 |
A |
1 |
1 |
squaroes |
7/22 |
| 512 |
22 |
7/22/512 |
Protecc |
9 |
A |
1 |
1 |
protecc |
7/22 |
| 176 |
10 |
7/10/176 |
D6 |
10 |
A |
1 |
1 |
d6 |
7/10 |
| 8 |
7 |
7/8 |
Sleeves |
10 |
A |
1 |
1 |
sleeves |
7 |
| 182 |
8 |
7/8/182 |
Standard Size |
10 |
A |
1 |
1 |
standard-size |
7/8 |
| 23 |
22 |
7/22/23 |
Ultra Pro |
10 |
A |
1 |
1 |
ultra-pro |
7/22 |
| 177 |
10 |
7/10/177 |
D20 |
20 |
A |
1 |
1 |
d20 |
7/10 |
| 9 |
7 |
7/9 |
Deckboxen |
20 |
A |
1 |
1 |
deckboxen |
7 |
| 183 |
8 |
7/8/183 |
Japaneze Size |
20 |
A |
1 |
1 |
japaneze-size |
7/8 |
| 24 |
22 |
7/22/24 |
Ultimate Guard |
20 |
A |
1 |
1 |
ultimate-guard |
7/22 |
| 25 |
22 |
7/22/25 |
Dragon Shield |
30 |
A |
1 |
1 |
dragon-shield |
7/22 |
| 184 |
8 |
7/8/184 |
Inner Sleeves |
30 |
A |
1 |
1 |
inner-sleeves |
7/8 |
| 178 |
10 |
7/10/178 |
RPG Würfel |
30 |
A |
1 |
1 |
rpg-wurfel |
7/10 |
| 10 |
7 |
7/10 |
Würfel |
30 |
A |
1 |
1 |
wurfel |
7 |
| 500 |
7 |
7/500 |
Tokens |
31 |
A |
1 |
1 |
tokens |
7 |
| 179 |
10 |
7/10/179 |
Glow in the Dark |
40 |
A |
1 |
1 |
glow-in-the-dark |
7/10 |
| 45 |
22 |
7/22/45 |
KMC |
40 |
A |
1 |
1 |
kmc-de |
7/22 |
| 16 |
7 |
7/16 |
Ordner |
40 |
A |
1 |
1 |
ordner |
7 |
| 185 |
8 |
7/8/185 |
Soft Sleeves |
40 |
A |
1 |
1 |
soft-sleeves |
7/8 |
| 39 |
7 |
7/39 |
Aufbewahrung |
42 |
A |
1 |
1 |
aufbewahrung |
7 |
| 27 |
7 |
7/27 |
Rucksack |
45 |
A |
1 |
1 |
rucksack |
7 |
| 28 |
7 |
7/28 |
Lebespunkte Zähler |
47 |
A |
1 |
1 |
life-pads |
7 |
| 167 |
7 |
7/167 |
Spielmatten |
48 |
A |
1 |
1 |
playmats |
7 |
| 67 |
22 |
7/22/67 |
Gamegenic |
50 |
A |
1 |
1 |
gamegenic |
7/22 |
| 22 |
7 |
7/22 |
Marken |
50 |
A |
1 |
1 |
marken |
7 |
| 180 |
10 |
7/10/180 |
Metal |
50 |
A |
1 |
1 |
metal |
7/10 |
| 169 |
22 |
7/22/169 |
Lokale Produkte |
60 |
A |
1 |
1 |
local-products |
7/22 |
| 431 |
22 |
7/22/431 |
Beckett |
70 |
A |
1 |
1 |
beckett |
7/22 |
| 634 |
22 |
7/22/634 |
Gemloader |
80 |
A |
1 |
1 |
gemloader |
7/22 |
| 168 |
7 |
7/168 |
Local Production |
160 |
A |
1 |
1 |
local-production |
7 |
| 186 |
8 |
7/8/186 |
Oversize Sleeves |
190 |
A |
1 |
1 |
oversize-sleeves |
7/8 |
| 187 |
8 |
7/8/187 |
Toploader |
200 |
A |
1 |
1 |
toploader |
7/8 |
| 349 |
8 |
7/8/349 |
Art Sleeves |
210 |
A |
1 |
1 |
art-sleeves |
7/8 |
| 295 |
183 |
7/8/183/295 |
Konami |
280 |
A |
1 |
1 |
konami |
7/8/183 |