Query time 0.00048
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "3.97"
},
"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": 8,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "(`dbggbern`.`cscart_categories`.`id_path` like '400/%')",
"cost_info": {
"read_cost": "3.84",
"eval_cost": "0.02",
"prefix_cost": "3.86",
"data_read_per_join": "656"
},
"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.04",
"eval_cost": "0.02",
"prefix_cost": "3.92",
"data_read_per_join": "496"
},
"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.04",
"eval_cost": "0.02",
"prefix_cost": "3.97",
"data_read_per_join": "277"
},
"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 |
| 443 |
400 |
400/443 |
Sets |
0 |
A |
1 |
1 |
sets |
400 |
| 442 |
400 |
400/442 |
Displays |
5 |
A |
1 |
1 |
displays |
400 |
| 669 |
443 |
400/443/669 |
A lawless Time (Set 7) |
6 |
A |
1 |
1 |
a-lawless-time-set-7 |
400/443 |
| 662 |
443 |
400/443/662 |
Secrets of Power (Set 6) |
7 |
A |
1 |
1 |
secrets-of-power-set-6 |
400/443 |
| 629 |
443 |
400/443/629 |
Legends of the Force (Set5) |
8 |
A |
1 |
1 |
legends-of-the-force-set5 |
400/443 |
| 573 |
443 |
400/443/573 |
Jump to Lightspeed (Set4) |
9 |
A |
1 |
1 |
jump-to-lightspeed-set4 |
400/443 |
| 441 |
400 |
400/441 |
Boosters |
10 |
A |
1 |
1 |
boosters |
400 |
| 452 |
443 |
400/443/452 |
Twilight of the Republic (Set3) |
10 |
A |
1 |
1 |
twilight-of-the-republic-set3 |
400/443 |
| 445 |
400 |
400/445 |
Einsteiger Produkte |
15 |
A |
1 |
1 |
einsteiger-produkte |
400 |
| 451 |
443 |
400/443/451 |
Shadows of the Galaxy (Set2) |
20 |
A |
1 |
1 |
shadows-of-the-galaxy-set2 |
400/443 |
| 444 |
400 |
400/444 |
Zubehör |
20 |
A |
1 |
1 |
zubehoer |
400 |
| 446 |
443 |
400/443/446 |
Spark of Rebellion (Set1) |
30 |
A |
1 |
1 |
spark-of-rebellion |
400/443 |
| 447 |
400 |
400/447 |
Weitere Produkte |
30 |
A |
1 |
1 |
weitere-produkte |
400 |