Query time 0.00049
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "5.25"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"c_status",
"parent",
"id_path",
"p_category_id"
],
"key": "id_path",
"used_key_parts": [
"id_path"
],
"key_length": "767",
"rows_examined_per_scan": 11,
"rows_produced_per_join": 0,
"filtered": "0.48",
"index_condition": "((`nuie_scalesta_net`.`cscart_categories`.`id_path` like '7165/7168/%') and (`nuie_scalesta_net`.`cscart_categories`.`category_id` <> 1))",
"cost_info": {
"read_cost": "5.20",
"eval_cost": "0.01",
"prefix_cost": "5.21",
"data_read_per_join": "141"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"storefront_id"
],
"attached_condition": "((`nuie_scalesta_net`.`cscart_categories`.`parent_id` = 7168) and ((`nuie_scalesta_net`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`nuie_scalesta_net`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`nuie_scalesta_net`.`cscart_categories`.`usergroup_ids`))) and (`nuie_scalesta_net`.`cscart_categories`.`status` = 'A') and (`nuie_scalesta_net`.`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": [
"nuie_scalesta_net.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.01",
"eval_cost": "0.01",
"prefix_cost": "5.23",
"data_read_per_join": "164"
},
"used_columns": [
"category_id",
"lang_code",
"category"
]
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code"
],
"key_length": "206",
"ref": [
"nuie_scalesta_net.cscart_categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.01",
"eval_cost": "0.01",
"prefix_cost": "5.25",
"data_read_per_join": "91"
},
"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 |
| 7181 |
7168 |
7165/7168/7181 |
Accessories |
0 |
A |
2 |
0 |
accessories-en-en-en-en-en |
7165/7168 |
| 7172 |
7168 |
7165/7168/7172 |
Bi-Fold Doors |
0 |
A |
2 |
0 |
bi-fold-doors |
7165/7168 |
| 7169 |
7168 |
7165/7168/7169 |
Corner Entry |
0 |
A |
2 |
0 |
corner-entry |
7165/7168 |
| 7180 |
7168 |
7165/7168/7180 |
D Shape |
0 |
A |
2 |
0 |
d-shape |
7165/7168 |
| 7178 |
7168 |
7165/7168/7178 |
Double Sliding Doors |
0 |
A |
2 |
0 |
double-sliding-doors |
7165/7168 |
| 7174 |
7168 |
7165/7168/7174 |
Hinged Doors |
0 |
A |
2 |
0 |
hinged-doors |
7165/7168 |
| 7179 |
7168 |
7165/7168/7179 |
Offset Quadrants |
0 |
A |
2 |
0 |
offset-quadrants |
7165/7168 |
| 7175 |
7168 |
7165/7168/7175 |
Pivot Doors |
0 |
A |
2 |
0 |
pivot-doors |
7165/7168 |
| 7176 |
7168 |
7165/7168/7176 |
Quadrants |
0 |
A |
2 |
0 |
quadrants |
7165/7168 |
| 7173 |
7168 |
7165/7168/7173 |
Side Panels |
0 |
A |
2 |
0 |
side-panels |
7165/7168 |
| 7177 |
7168 |
7165/7168/7177 |
Single Sliding Doors |
0 |
A |
2 |
0 |
single-sliding-doors |
7165/7168 |