Query time 0.03894
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` = 189) 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 |
| 556 |
542 |
542/556 |
All necklace sets |
0 |
A |
189 |
| 866 |
855 |
855/866 |
Artisan lampwork focal beads |
0 |
A |
189 |
| 587 |
549 |
549/587 |
Black, brown, gray, violet |
0 |
A |
189 |
| 576 |
549 |
549/576 |
Blue | deeper |
0 |
A |
189 |
| 575 |
549 |
549/575 |
Blue | lighter |
0 |
A |
189 |
| 685 |
549 |
549/685 |
Earth/Sky palette |
0 |
A |
189 |
| 582 |
549 |
549/582 |
Green |
0 |
A |
189 |
| 522 |
542 |
542/522 |
Multi-strand | Collar necklaces |
0 |
A |
189 |
| 585 |
549 |
549/585 |
New Mexico palette |
0 |
A |
189 |
| 579 |
549 |
549/579 |
Orange, coral |
0 |
A |
189 |
| 598 |
549 |
549/598 |
Pale tints, white |
0 |
A |
189 |
| 546 |
542 |
542/546 |
Pendant and charm necklaces |
0 |
A |
189 |
| 541 |
549 |
549/541 |
Pink, purple |
0 |
A |
189 |
| 15364 |
549 |
549/15364 |
Rainbow |
0 |
A |
189 |
| 853 |
855 |
855/853 |
Raku/ceramic focal beads |
0 |
A |
189 |
| 574 |
549 |
549/574 |
Red |
0 |
A |
189 |
| 677 |
855 |
855/677 |
Stone, coral, pearl, shell |
0 |
A |
189 |
| 849 |
855 |
855/849 |
Vintage glass beads |
0 |
A |
189 |
| 880 |
855 |
855/880 |
Vintage lucite/Bakelite |
0 |
A |
189 |
| 600 |
549 |
549/600 |
Water garden palette |
0 |
A |
189 |
| 7522 |
0 |
7522 |
Special — 25% off select sets |
20 |
A |
189 |
| 542 |
0 |
542 |
Bead Necklace Sets |
30 |
A |
189 |
| 3326 |
0 |
3326 |
Bracelets |
40 |
A |
189 |
| 657 |
0 |
657 |
Mask lanyards/necklaces |
50 |
A |
189 |
| 549 |
0 |
549 |
Browse by Color Palette |
60 |
A |
189 |
| 855 |
0 |
855 |
Browse by Materials |
70 |
A |
189 |