Query time 0.00113
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "4.44"
},
"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": 9,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "(`dbggbern`.`cscart_categories`.`id_path` like '325/%')",
"cost_info": {
"read_cost": "4.29",
"eval_cost": "0.02",
"prefix_cost": "4.31",
"data_read_per_join": "738"
},
"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": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.05",
"eval_cost": "0.02",
"prefix_cost": "4.37",
"data_read_per_join": "558"
},
"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": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.05",
"eval_cost": "0.02",
"prefix_cost": "4.44",
"data_read_per_join": "312"
},
"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 |
| 661 |
329 |
325/329/661 |
Whispers in the Well |
29 |
A |
1 |
1 |
whispers-in-the-well |
325/329 |
| 641 |
329 |
325/329/641 |
Fabled |
30 |
A |
1 |
1 |
fabled |
325/329 |
| 329 |
325 |
325/329 |
Sets |
30 |
A |
1 |
1 |
sets |
325 |
| 582 |
329 |
325/329/582 |
Reign of Jafar |
35 |
A |
1 |
1 |
reign-of-jafar |
325/329 |
| 575 |
329 |
325/329/575 |
Archazias Island |
40 |
A |
1 |
1 |
archazias-island |
325/329 |
| 330 |
325 |
325/330 |
Boosters |
40 |
A |
1 |
1 |
boosters |
325 |
| 521 |
329 |
325/329/521 |
Azurite Sea |
50 |
A |
1 |
1 |
azurite-sea |
325/329 |
| 331 |
325 |
325/331 |
Weitere Produkte |
50 |
A |
1 |
1 |
weitere-produkte |
325 |
| 332 |
325 |
325/332 |
Einsteiger Produkte |
60 |
A |
1 |
1 |
einstieger-produkte |
325 |
| 495 |
329 |
325/329/495 |
Shimmering Skies |
60 |
A |
1 |
1 |
shimmering-skies |
325/329 |
| 335 |
325 |
325/335 |
Displays |
70 |
A |
1 |
1 |
displays |
325 |
| 454 |
329 |
325/329/454 |
Ursula's Return |
70 |
A |
1 |
1 |
ursulas-return |
325/329 |
| 417 |
329 |
325/329/417 |
Into the Inklands |
80 |
A |
1 |
1 |
into-the-inklands |
325/329 |
| 327 |
329 |
325/329/327 |
Rise of the Floodborn |
90 |
A |
1 |
1 |
riseofthefloodborn |
325/329 |
| 326 |
329 |
325/329/326 |
Chapter 1 |
100 |
A |
1 |
1 |
chapter-1 |
325/329 |