Query time 0.00143
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "13.15"
},
"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": 29,
"rows_produced_per_join": 0,
"filtered": "0.17",
"cost_info": {
"read_cost": "13.08",
"eval_cost": "0.00",
"prefix_cost": "13.09",
"data_read_per_join": "133"
},
"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` = 5926) 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,15,12,54,3,85,87,4,179,261,262,99,271,295,59,317,387,18154,18155,18158,18159,18160,18161,18162,18163,18164,18340,19271,19644)))"
}
},
{
"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.01",
"eval_cost": "0.00",
"prefix_cost": "13.11",
"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.00",
"prefix_cost": "13.15",
"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 |
| 18163 |
18154 |
18154/18163 |
1 hour sessions |
0 |
A |
5926 |
0 |
1-hour-sessions |
18154 |
|
|
| 18160 |
18154 |
18154/18160 |
15 min sessions |
0 |
A |
5926 |
0 |
15-min-sessions |
18154 |
|
|
| 18161 |
18154 |
18154/18161 |
30 min sessions |
0 |
A |
5926 |
0 |
30-min-sessions |
18154 |
|
|
| 18162 |
18154 |
18154/18162 |
45 min sessions |
0 |
A |
5926 |
0 |
45-min-sessions |
18154 |
|
|
| 18158 |
18155 |
18155/18158 |
Necklaces |
0 |
A |
5926 |
0 |
necklaces |
18155 |
|
|
| 19644 |
0 |
19644 |
Candles |
1 |
A |
5926 |
0 |
candles-en-38 |
|
|
|
| 18340 |
0 |
18340 |
Soap |
2 |
A |
5926 |
0 |
soap-en-17 |
|
|
|
| 18155 |
0 |
18155 |
Jewelry |
3 |
A |
5926 |
0 |
jewelry-en-136 |
|
|
|
| 18159 |
0 |
18159 |
Hair Accessories |
4 |
A |
5926 |
0 |
hair-accessories-en-18 |
|
|
|
| 19271 |
0 |
19271 |
Keychains |
5 |
A |
5926 |
0 |
key-chains-en-25 |
|
|
|
| 18154 |
0 |
18154 |
Distance Reiki |
6 |
A |
5926 |
0 |
distance-reiki |
|
|
|