Query time 0.00416
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "23.98"
},
"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": 53,
"rows_produced_per_join": 0,
"filtered": "0.09",
"cost_info": {
"read_cost": "23.90",
"eval_cost": "0.01",
"prefix_cost": "23.91",
"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` = 2730) 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,13,4,51,71,74,3,85,87,88,91,90,109,112,116,117,118,126,127,178,45,183,191,256,76,278,22,342,349,384,2566,5738,5739,5741,5769,5770,5771,5773,5774,5775,5776,5777,5778,5779,5780,5781,5782,6157,6158,6159,7989,19302,21321)))"
}
},
{
"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.01",
"prefix_cost": "23.93",
"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": "23.98",
"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 |
| 6159 |
5782 |
5782/6159 |
Corresponding with book ~ The Advent Jesse Tree |
0 |
A |
2730 |
0 |
corresponding-with-book-the-advent-tree |
5782 |
|
|
| 6157 |
5782 |
5782/6157 |
Corresponding with book ~ The Jesus Storybook Bible |
0 |
A |
2730 |
0 |
corresponding-with-the-jesus-storybook-bible |
5782 |
|
|
| 6158 |
5782 |
5782/6158 |
Corresponding with book ~ Unwrapping the Greatest Gift |
0 |
A |
2730 |
0 |
corresponding-with-book-unwrapping-the-greatest-gift |
5782 |
|
|
| 5775 |
5774 |
5774/5775 |
ID Badge Reels |
0 |
A |
2730 |
0 |
id-badge-reels |
5774 |
|
|
| 5776 |
5774 |
5774/5776 |
Planner Accessories |
0 |
A |
2730 |
0 |
planner-accessories |
5774 |
|
|
| 21321 |
0 |
21321 |
Easter Advent Ornaments |
1 |
A |
2730 |
0 |
easter-advent-ornaments-cards |
|
|
|
| 5769 |
0 |
5769 |
Felt Face Masks ~ Pretend Play |
2 |
A |
2730 |
0 |
felt-face-masks-pretend-play |
|
|
|
| 5771 |
0 |
5771 |
Pacifier Clips |
3 |
A |
2730 |
0 |
pacifier-clips-en |
|
|
|
| 5739 |
0 |
5739 |
Teething Rings |
4 |
A |
2730 |
0 |
teething-rings |
|
|
|
| 5741 |
0 |
5741 |
Kids Jewelry |
5 |
A |
2730 |
0 |
kids-jewelry |
|
|
|
| 5770 |
0 |
5770 |
Felt Dress Up Dolls |
6 |
A |
2730 |
0 |
felt-dress-up-dolls |
|
|
|
| 5738 |
0 |
5738 |
Hair Clips and Holders |
7 |
A |
2730 |
0 |
hair-clips-and-holders |
|
|
|
| 5773 |
0 |
5773 |
Suspenders and Bow Ties |
8 |
A |
2730 |
0 |
suspenders-and-bow-ties |
|
|
|
| 5778 |
0 |
5778 |
Pencil Toppers and Magnets |
9 |
A |
2730 |
0 |
pencil-toppers-and-magnets |
|
|
|
| 5777 |
0 |
5777 |
Bookmarks |
10 |
A |
2730 |
0 |
bookmarks-en-4 |
|
|
|
| 5774 |
0 |
5774 |
ID Badge Reels / Planner Accessories |
11 |
A |
2730 |
0 |
stuff-for-mom |
|
|
|
| 7989 |
0 |
7989 |
Keychains / Zipper Pulls |
12 |
A |
2730 |
0 |
key-chains-zipper-pulls |
|
|
|
| 5782 |
0 |
5782 |
Jesse Tree Ornaments ~ Biblical Advent Ornaments |
13 |
A |
2730 |
0 |
jesse-tree-ornaments-biblical-advent-ornaments |
|
|
|
| 5781 |
0 |
5781 |
The Christmas Shop |
14 |
A |
2730 |
0 |
the-christmas-shop |
|
|
|
| 5780 |
0 |
5780 |
The Fall and Thanksgiving Shop |
15 |
A |
2730 |
0 |
the-fall-shop |
|
|
|
| 5779 |
0 |
5779 |
The Halloween Shop |
16 |
A |
2730 |
0 |
the-halloween-shop |
|
|
|
| 19302 |
0 |
19302 |
Nativity Sets |
17 |
A |
2730 |
0 |
nativity-sets |
|
|
|