Query time 0.03883
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "1153.20"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "categories",
"access_type": "ref",
"possible_keys": [
"c_status",
"index_categories_on_deleted_at"
],
"key": "index_categories_on_deleted_at",
"used_key_parts": [
"deleted_at"
],
"key_length": "6",
"ref": [
"const"
],
"rows_examined_per_scan": 10182,
"rows_produced_per_join": 33,
"filtered": "0.33",
"index_condition": "(`goimagine`.`categories`.`deleted_at` is null)",
"cost_info": {
"read_cost": "120.75",
"eval_cost": "3.39",
"prefix_cost": "1138.95",
"data_read_per_join": "88K"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"level",
"company_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"deleted_at"
],
"attached_condition": "((`goimagine`.`categories`.`company_id` = 2948) 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`.`level` <= 3))"
}
},
{
"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": 33,
"filtered": "100.00",
"cost_info": {
"read_cost": "10.86",
"eval_cost": "3.39",
"prefix_cost": "1153.20",
"data_read_per_join": "154K"
},
"used_columns": [
"category_id",
"lang_code",
"category"
]
}
}
]
}
}
}
Result
| category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
| 6817 |
0 |
6817 |
** NEW ** |
0 |
A |
2948 |
| 18879 |
18877 |
9148/18877/18879 |
16 oz. Tumblers |
0 |
A |
2948 |
| 18881 |
18877 |
9148/18877/18881 |
18 oz. Tumblers |
0 |
A |
2948 |
| 18878 |
18877 |
9148/18877/18878 |
20 oz. Tumblers |
0 |
A |
2948 |
| 18880 |
18877 |
9148/18877/18880 |
24 oz. Tumblers |
0 |
A |
2948 |
| 6365 |
5843 |
5843/6365 |
3D Animals |
0 |
A |
2948 |
| 10333 |
5843 |
5843/10333 |
3D Word Signs |
0 |
A |
2948 |
| 7712 |
7221 |
7221/7712 |
Animal Themed |
0 |
A |
2948 |
| 18857 |
9148 |
9148/18857 |
Assorted Glasses |
0 |
A |
2948 |
| 18877 |
9148 |
9148/18877 |
Assorted Tumblers |
0 |
A |
2948 |
| 10335 |
7405 |
7405/10335 |
Baby Shower/Gender Reveal |
0 |
A |
2948 |
| 20954 |
7266 |
7266/20954 |
Bangle Charm Bracelets |
0 |
A |
2948 |
| 8443 |
8498 |
8498/8443 |
Beach Themed Items |
0 |
A |
2948 |
| 20143 |
7266 |
7266/20143 |
Beaded Jewelry |
0 |
A |
2948 |
| 13358 |
13321 |
13321/13358 |
Bottle Stopper |
0 |
A |
2948 |
| 10812 |
7266 |
7266/10812 |
Bracelets |
0 |
A |
2948 |
| 9321 |
7266 |
7266/9321 |
Cabochon Pendants |
0 |
A |
2948 |
| 20955 |
7266 |
7266/20955 |
Charm Earrings |
0 |
A |
2948 |
| 13357 |
13321 |
13321/13357 |
Charms |
0 |
A |
2948 |
| 10334 |
7405 |
7405/10334 |
Christening/Baptism |
0 |
A |
2948 |
| 8499 |
6370 |
6370/8499 |
Christmas |
0 |
A |
2948 |
| 6866 |
6366 |
6366/6866 |
Crystal Geode Coasters |
0 |
A |
2948 |
| 7379 |
7266 |
7266/7379 |
Crystal Pendants |
0 |
A |
2948 |
| 21066 |
7266 |
7266/21066 |
Dangle Earrings |
0 |
A |
2948 |
| 19803 |
19515 |
19515/19803 |
Decorative Beaded Pens |
0 |
A |
2948 |
| 13628 |
13321 |
13321/13628 |
Decorative Pin(s) |
0 |
A |
2948 |
| 13359 |
13321 |
13321/13359 |
Earrings |
0 |
A |
2948 |
| 7905 |
7266 |
7266/7905 |
Earrings |
0 |
A |
2948 |
| 6358 |
7710 |
7710/6358 |
Framed Diamond Art |
0 |
A |
2948 |
| 16173 |
9148 |
9148/16173 |
Glassware Sets |
0 |
A |
2948 |
| 7714 |
7221 |
7221/7714 |
ICE |
0 |
A |
2948 |
| 13360 |
13321 |
13321/13360 |
Keychains |
0 |
A |
2948 |
| 19514 |
11350 |
11350/19514 |
Keychains |
0 |
A |
2948 |
| 20611 |
7266 |
7266/20611 |
Kids Beaded Jewelry |
0 |
A |
2948 |
| 10336 |
7405 |
7405/10336 |
Kids Birthday |
0 |
A |
2948 |
| 8695 |
7405 |
7405/8695 |
Memorial |
0 |
A |
2948 |
| 10409 |
9148 |
9148/10409 |
Mugs |
0 |
A |
2948 |
| 10161 |
8499 |
6370/8499/10161 |
Ornaments |
0 |
A |
2948 |
| 13356 |
13321 |
13321/13356 |
Pendants |
0 |
A |
2948 |
| 8031 |
7266 |
7266/8031 |
Pendants |
0 |
A |
2948 |
| 19509 |
11350 |
11350/19509 |
Pens |
0 |
A |
2948 |
| 20302 |
10163 |
10163/20302 |
Prayer Beads |
0 |
A |
2948 |
| 7713 |
7221 |
7221/7713 |
Ribbons/Awareness |
0 |
A |
2948 |
| 10811 |
7266 |
7266/10811 |
Rings |
0 |
A |
2948 |
| 6483 |
7710 |
7710/6483 |
Round Drill Diamond Art |
0 |
A |
2948 |
| 8489 |
6366 |
6366/8489 |
Round Geode Coasters |
0 |
A |
2948 |
| 6247 |
7710 |
7710/6247 |
Special Shaped Diamond Art |
0 |
A |
2948 |
| 8488 |
6366 |
6366/8488 |
Square Geode Coasters |
0 |
A |
2948 |
| 7265 |
6366 |
6366/7265 |
Textured Geode Coasters |
0 |
A |
2948 |
| 6368 |
5843 |
5843/6368 |
Trinket Holders |
0 |
A |
2948 |
| 10482 |
6370 |
6370/10482 |
Valentines Day |
0 |
A |
2948 |
| 6369 |
5843 |
5843/6369 |
Votive / Tealight Holder |
0 |
A |
2948 |
| 18886 |
9148 |
9148/18886 |
Water Bottles |
0 |
A |
2948 |
| 8694 |
7405 |
7405/8694 |
Wedding |
0 |
A |
2948 |
| 11350 |
0 |
11350 |
**Mature Items** |
1 |
A |
2948 |
| 14094 |
0 |
14094 |
**MaryJane** |
2 |
A |
2948 |
| 19515 |
0 |
19515 |
Decorative Pens |
3 |
A |
2948 |
| 15466 |
0 |
15466 |
FreeForm Decorative Bowls |
4 |
A |
2948 |
| 10853 |
0 |
10853 |
Games |
5 |
A |
2948 |
| 15094 |
0 |
15094 |
Fidget Spinner |
7 |
A |
2948 |
| 7695 |
0 |
7695 |
Unique |
8 |
A |
2948 |
| 10163 |
0 |
10163 |
Religious |
9 |
A |
2948 |
| 13321 |
0 |
13321 |
Customers Choice |
10 |
A |
2948 |
| 6366 |
0 |
6366 |
Coasters |
11 |
A |
2948 |
| 7266 |
0 |
7266 |
Jewelry |
12 |
A |
2948 |
| 7221 |
0 |
7221 |
Keychains |
13 |
A |
2948 |
| 9148 |
0 |
9148 |
Drinkware |
14 |
A |
2948 |
| 6370 |
0 |
6370 |
Holiday |
15 |
A |
2948 |
| 8498 |
0 |
8498 |
Themed Items |
16 |
A |
2948 |
| 7405 |
0 |
7405 |
Occasions |
17 |
A |
2948 |
| 7710 |
0 |
7710 |
Diamond Art Variations |
18 |
A |
2948 |
| 5843 |
0 |
5843 |
Handmade Resin Crafts |
19 |
A |
2948 |
| 13579 |
0 |
13579 |
Pocket Hugs |
56 |
A |
2948 |