Query time 0.00206
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "21.72"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id",
"index_categories_on_deleted_at"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"rows_examined_per_scan": 48,
"rows_produced_per_join": 0,
"filtered": "0.10",
"cost_info": {
"read_cost": "21.65",
"eval_cost": "0.01",
"prefix_cost": "21.65",
"data_read_per_join": "134"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"deleted_at",
"storefront_id"
],
"attached_condition": "((`goimagine`.`categories`.`company_id` = 2457) and ((`goimagine`.`categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`goimagine`.`categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`goimagine`.`categories`.`usergroup_ids`))) and (`goimagine`.`categories`.`status` = 'A') and (`goimagine`.`categories`.`storefront_id` in (0,1)) and (`goimagine`.`categories`.`deleted_at` is null) and (`goimagine`.`categories`.`category_id` in (2,8,3,14,17,18,40,4,45,46,71,72,74,78,85,87,88,147,175,176,195,205,206,208,51,253,12,59,311,22,349,357,368,86,388,4932,4933,4934,4935,4937,4939,4940,22740,7651,8274,10891,11030,12955)))"
}
},
{
"table": {
"table_name": "category_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id",
"lang_code"
],
"key_length": "9",
"ref": [
"goimagine.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": "21.68",
"data_read_per_join": "232"
},
"used_columns": [
"category_id",
"lang_code",
"category",
"mega_m_category_banner_url",
"mega_m_category_svg_icon"
]
}
},
{
"table": {
"table_name": "seo_names",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code"
],
"key_length": "206",
"ref": [
"goimagine.categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.04",
"eval_cost": "0.01",
"prefix_cost": "21.73",
"data_read_per_join": "86"
},
"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 |
mega_m_category_banner_url |
mega_m_category_svg_icon |
| 12955 |
0 |
12955 |
3D printed |
0 |
A |
2457 |
0 |
3d-printed |
|
|
|
| 4939 |
0 |
4939 |
Accessories |
0 |
A |
2457 |
0 |
accessories-en-8 |
|
|
|
| 8274 |
4939 |
4939/8274 |
Bows |
0 |
A |
2457 |
0 |
bows |
4939 |
|
|
| 4937 |
4933 |
4933/4937 |
Clothing |
0 |
A |
2457 |
0 |
clothing |
4933 |
|
|
| 4932 |
0 |
4932 |
Leather |
0 |
A |
2457 |
0 |
leather |
|
|
|
| 4940 |
4939 |
4939/4940 |
Leather |
0 |
A |
2457 |
0 |
leather |
4939 |
|
|
| 4934 |
0 |
4934 |
Toys |
0 |
A |
2457 |
0 |
toys |
|
|
|
| 11030 |
0 |
11030 |
Wooden |
0 |
A |
2457 |
0 |
wooden |
|
|
|