Query time 0.00308
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "59.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": 131,
"rows_produced_per_join": 0,
"filtered": "0.04",
"cost_info": {
"read_cost": "59.07",
"eval_cost": "0.01",
"prefix_cost": "59.08",
"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` = 143) 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,3,4,8,12,14,17,20,22,23,36,38,41,45,46,47,48,54,56,59,71,74,75,76,78,85,86,87,105,106,107,109,110,112,114,115,117,118,123,125,126,319,128,147,178,183,189,190,191,195,202,22751,203,206,207,208,100,209,212,222,224,236,240,51,250,268,269,275,91,276,311,321,329,349,357,358,364,375,645,646,647,648,653,658,661,662,663,666,667,669,670,675,676,678,679,680,683,681,682,684,688,689,690,691,692,655,694,693,695,698,699,700,701,702,707,708,709,964,1190,5,2185,2566,6636,6638,22740,7651,11334,11343,11601,12848,22892)))"
}
},
{
"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": "59.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.01",
"prefix_cost": "59.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 |
| 691 |
683 |
683/691 |
Hair Bows / Accessories |
0 |
A |
143 |
0 |
hair-bows-accessories |
683 |
|
|
| 688 |
683 |
683/688 |
Face Mask |
0 |
A |
143 |
0 |
face-mask |
683 |
|
|
| 682 |
645 |
645/682 |
Baby, Toddler & Kids |
0 |
A |
143 |
0 |
baby-toddler-and-kids |
645 |
|
|
| 681 |
683 |
683/681 |
Baby, Toddler & Kids |
0 |
A |
143 |
0 |
baby-toddler-and-kids |
683 |
|
|
| 678 |
645 |
645/678 |
Bags, Purses, & Wallets |
0 |
A |
143 |
0 |
bags-purses-and-wallets |
645 |
|
|
| 675 |
645 |
645/675 |
Beach / Outdoors |
0 |
A |
143 |
0 |
beach |
645 |
|
|
| 676 |
675 |
645/675/676 |
Beach Towels |
0 |
A |
143 |
0 |
beach-towels |
645/675 |
|
|
| 653 |
645 |
645/653 |
Bed & Bath |
0 |
A |
143 |
0 |
bed-and-bath |
645 |
|
|
| 700 |
682 |
645/682/700 |
Bibs & Burp Cloths |
0 |
A |
143 |
0 |
bibs-and-burp-cloths |
645/682 |
|
|
| 699 |
681 |
683/681/699 |
Bibs & Burp Cloths |
0 |
A |
143 |
0 |
bibs-and-burp-cloths |
683/681 |
|
|
| 647 |
645 |
645/647 |
Blankets, Quilts & Throws |
0 |
A |
143 |
0 |
monogramed-baby-quilts |
645 |
|
|
| 662 |
661 |
645/661/662 |
Christmas |
0 |
A |
143 |
0 |
christmas |
645/661 |
|
|
| 680 |
645 |
645/680 |
Clothing |
0 |
A |
143 |
0 |
clothing |
645 |
|
|
| 701 |
645 |
645/701 |
Cosmetic Accessories |
0 |
A |
143 |
0 |
cosmetic-accessories |
645 |
|
|
| 695 |
693 |
693/695 |
Earrings |
0 |
A |
143 |
0 |
earrings |
693 |
|
|
| 694 |
655 |
645/655/694 |
Earrings |
0 |
A |
143 |
0 |
earrings |
645/655 |
|
|
| 666 |
661 |
645/661/666 |
Easter |
0 |
A |
143 |
0 |
easter |
645/661 |
|
|
| 11343 |
11334 |
11334/11343 |
Easter |
0 |
A |
143 |
0 |
easter |
11334 |
|
|
| 708 |
682 |
645/682/708 |
Fun Activities & Games |
0 |
A |
143 |
0 |
fun-activities-and-games |
645/682 |
|
|
| 12848 |
675 |
645/675/12848 |
Garden |
0 |
A |
143 |
0 |
garden-en |
645/675 |
|
|
| 692 |
680 |
645/680/692 |
Hair Bows / Accessories |
0 |
A |
143 |
0 |
hair-bows-accessories |
645/680 |
|
|
| 669 |
661 |
645/661/669 |
Halloween |
0 |
A |
143 |
0 |
halloween |
645/661 |
|
|
| 646 |
645 |
645/646 |
Hand Sanitizer Holders |
0 |
A |
143 |
0 |
hand-sanitizer-holders |
645 |
|
|
| 689 |
683 |
683/689 |
Hats / Caps / Beanies |
0 |
A |
143 |
0 |
hats-caps-beanies |
683 |
|
|
| 690 |
645 |
645/690 |
Hats / Caps / Beanies |
0 |
A |
143 |
0 |
hats-caps-beanies |
645 |
|
|
| 661 |
645 |
645/661 |
Holidays |
0 |
A |
143 |
0 |
holidays |
645 |
|
|
| 655 |
645 |
645/655 |
Jewelry |
0 |
A |
143 |
0 |
jewelry |
645 |
|
|
| 667 |
661 |
645/661/667 |
July 4th |
0 |
A |
143 |
0 |
july-4th |
645/661 |
|
|
| 658 |
645 |
645/658 |
Key Fobs / Key Rings |
0 |
A |
143 |
0 |
key-fobs-key-rings |
645 |
|
|
| 648 |
645 |
645/648 |
Kitchen & Dining |
0 |
A |
143 |
0 |
kitchen-and-dining |
645 |
|
|
| 702 |
701 |
645/701/702 |
Lip Balm Holders |
0 |
A |
143 |
0 |
lip-balm-holders |
645/701 |
|
|
| 684 |
645 |
645/684 |
Living & Home Decor |
0 |
A |
143 |
0 |
living-and-home-decor |
645 |
|
|
| 707 |
645 |
645/707 |
Novelty |
0 |
A |
143 |
0 |
novelty |
645 |
|
|
| 670 |
648 |
645/648/670 |
Tea Towels / Bread Bowl Linens |
0 |
A |
143 |
0 |
tea-towels-bread-bowl-linens |
645/648 |
|
|
| 663 |
661 |
645/661/663 |
Valentine's Day |
0 |
A |
143 |
0 |
valentines-day |
645/661 |
|
|
| 1190 |
0 |
1190 |
What's New |
10 |
A |
143 |
0 |
whats-new |
|
|
|
| 698 |
0 |
698 |
Bestsellers |
20 |
A |
143 |
0 |
bestsellers |
|
|
|
| 683 |
0 |
683 |
Clothing |
30 |
A |
143 |
0 |
clothing-en-2 |
|
|
|
| 693 |
0 |
693 |
Jewelry |
45 |
A |
143 |
0 |
jewelry-en-3 |
|
|
|
| 645 |
0 |
645 |
Embroidery |
55 |
A |
143 |
0 |
embroidery |
|
|
|
| 11334 |
0 |
11334 |
Greeting Cards |
56 |
A |
143 |
0 |
greeting-cards-en-9 |
|
|
|
| 11601 |
0 |
11601 |
Ornaments |
57 |
A |
143 |
0 |
ornaments-en-49 |
|
|
|
| 679 |
0 |
679 |
Personalized |
65 |
A |
143 |
0 |
personalized-en |
|
|
|
| 709 |
0 |
709 |
Fun Activities & Games |
70 |
A |
143 |
0 |
fun-activities-and-games |
|
|
|