Query time 0.00215
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "36.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": 80,
"rows_produced_per_join": 0,
"filtered": "0.06",
"cost_info": {
"read_cost": "36.08",
"eval_cost": "0.00",
"prefix_cost": "36.08",
"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` = 63) 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 (8,2,13,17,18,19,3,21,5,27,23,38,40,4,45,51,82,85,87,71,91,90,78,105,109,114,115,116,118,123,12,319,128,131,132,134,136,137,147,148,157,162,170,173,174,175,179,181,250,384,838,839,840,841,842,843,844,845,846,847,848,850,851,852,856,857,859,860,861,862,863,864,865,1323,1324,1331,1337,2566,6638,6737)))"
}
},
{
"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.00",
"prefix_cost": "36.10",
"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": "36.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 |
| 1331 |
0 |
1331 |
All |
0 |
A |
63 |
0 |
all |
|
|
|
| 838 |
0 |
838 |
Anklets |
0 |
A |
63 |
0 |
anklets |
|
|
|
| 845 |
0 |
845 |
Bookmarks |
0 |
A |
63 |
0 |
bookmarks |
|
|
|
| 839 |
0 |
839 |
Bracelets |
0 |
A |
63 |
0 |
bracelets |
|
|
|
| 862 |
851 |
851/862 |
Bracelets |
0 |
A |
63 |
0 |
bracelets |
851 |
|
|
| 841 |
0 |
841 |
Christmas Spiders |
0 |
A |
63 |
0 |
christmas-spiders |
|
|
|
| 843 |
0 |
843 |
Earrings |
0 |
A |
63 |
0 |
earrings-en-2 |
|
|
|
| 861 |
839 |
839/861 |
Friendship Bracelets |
0 |
A |
63 |
0 |
friendship-bracelets |
839 |
|
|
| 847 |
0 |
847 |
Hair Accessories |
0 |
A |
63 |
0 |
hair-accessories-en |
|
|
|
| 1324 |
0 |
1324 |
Handmade Supplies |
0 |
A |
63 |
0 |
handmade-supplies-en |
|
|
|
| 860 |
846 |
846/860 |
Keychains |
0 |
A |
63 |
0 |
keychains |
846 |
|
|
| 846 |
0 |
846 |
Lanyards and Keychains |
0 |
A |
63 |
0 |
lanyards-and-key-chains |
|
|
|
| 856 |
843 |
843/856 |
Leverback Earrings |
0 |
A |
63 |
0 |
leverback-earrings |
843 |
|
|
| 859 |
846 |
846/859 |
Mask Lanyards |
0 |
A |
63 |
0 |
mask-lanyards |
846 |
|
|
| 851 |
0 |
851 |
Men's Jewelry |
0 |
A |
63 |
0 |
mens-jewelry |
|
|
|
| 852 |
840 |
840/852 |
Mens |
0 |
A |
63 |
0 |
morse-code-bracelets-mens |
840 |
|
|
| 864 |
851 |
851/864 |
Morse Code Bracelets |
0 |
A |
63 |
0 |
morse-code-bracelets |
851 |
|
|
| 840 |
0 |
840 |
Morse Code Bracelets |
0 |
A |
63 |
0 |
morse-code-bracelets |
|
|
|
| 844 |
0 |
844 |
Necklaces |
0 |
A |
63 |
0 |
necklaces |
|
|
|
| 863 |
851 |
851/863 |
Necklaces |
0 |
A |
63 |
0 |
necklaces |
851 |
|
|
| 1323 |
0 |
1323 |
Pendants |
0 |
A |
63 |
0 |
pendants |
|
|
|
| 850 |
843 |
843/850 |
Post Earrings |
0 |
A |
63 |
0 |
earrings-post |
843 |
|
|
| 848 |
839 |
839/848 |
Stretch |
0 |
A |
63 |
0 |
stretch-bracelet |
839 |
|
|
| 865 |
838 |
838/865 |
Stretch Anklets |
0 |
A |
63 |
0 |
stretch-anklets |
838 |
|
|
| 857 |
843 |
843/857 |
Threaders |
0 |
A |
63 |
0 |
threaders |
843 |
|
|
| 1337 |
0 |
1337 |
Toe Rings |
0 |
A |
63 |
0 |
toe-rings |
|
|
|
| 842 |
0 |
842 |
Tree of LIfe Pendants |
0 |
A |
63 |
0 |
tree-of-life-pendants |
|
|
|