Query time 0.00045
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "2.12"
},
"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": 4,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "(`dbggbern`.`cscart_categories`.`id_path` like '181/%')",
"cost_info": {
"read_cost": "2.05",
"eval_cost": "0.01",
"prefix_cost": "2.06",
"data_read_per_join": "328"
},
"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.02",
"eval_cost": "0.01",
"prefix_cost": "2.09",
"data_read_per_join": "248"
},
"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.02",
"eval_cost": "0.01",
"prefix_cost": "2.12",
"data_read_per_join": "138"
},
"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 |
| 334 |
181 |
181/334 |
Panini & Topps Sammelkarten |
15 |
A |
1 |
1 |
panini-trading-cards |
181 |
| 302 |
181 |
181/302 |
Action Figuren |
20 |
A |
1 |
1 |
action-figures |
181 |
| 303 |
181 |
181/303 |
Plüsch |
30 |
A |
1 |
1 |
plushes |
181 |
| 304 |
181 |
181/304 |
Sammel Figuren |
40 |
A |
1 |
1 |
collectables |
181 |
| 305 |
181 |
181/305 |
Shirts |
50 |
A |
1 |
1 |
shirts |
181 |
| 306 |
181 |
181/306 |
Bücher/ Comics / Mangas |
60 |
A |
1 |
1 |
books-comics-mangas |
181 |