Query time 0.00516
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "23.07"
},
"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": 51,
"rows_produced_per_join": 0,
"filtered": "0.10",
"cost_info": {
"read_cost": "23.00",
"eval_cost": "0.01",
"prefix_cost": "23.01",
"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` = 4127) 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 (4,12,3,14,52,87,5,97,109,112,114,123,51,250,253,55,306,59,312,319,367,368,369,370,372,378,379,2566,71,6727,6730,20047,9263,9264,9288,9287,9289,9912,9971,10183,10891,15905,16912,19942,19957,20045,20046,20048,20875,22065,22528)))"
}
},
{
"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.03",
"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.08",
"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 |
| 20045 |
9288 |
9288/20045 |
Cosmetic Brush Organizer/Holder |
0 |
A |
4127 |
0 |
cosmetic-brush-organizer-holder |
9288 |
|
|
| 20048 |
20047 |
20047/20048 |
Shoulder Purse |
0 |
A |
4127 |
0 |
shoulder-purse |
20047 |
|
|
| 20875 |
9288 |
9288/20875 |
Triangle Cosmetic Bag |
0 |
A |
4127 |
0 |
triangle-cosmetic-bag |
9288 |
|
|
| 10183 |
0 |
10183 |
New Items |
1 |
A |
4127 |
0 |
new-items |
|
|
|
| 9971 |
0 |
9971 |
All Nifty Items |
2 |
A |
4127 |
0 |
all-shop-items-en-2 |
|
|
|
| 22528 |
0 |
22528 |
Custom Orders |
3 |
A |
4127 |
0 |
custom-orders-en-10 |
|
|
|
| 19942 |
0 |
19942 |
Totes |
4 |
A |
4127 |
0 |
totes-en-5 |
|
|
|
| 20047 |
0 |
20047 |
Purses |
5 |
A |
4127 |
0 |
purses-en-10 |
|
|
|
| 19957 |
0 |
19957 |
Keychains |
6 |
A |
4127 |
0 |
keychains-en-98 |
|
|
|
| 15905 |
0 |
15905 |
Beach Bags |
7 |
A |
4127 |
0 |
beach-bags |
|
|
|
| 9263 |
20047 |
20047/9263 |
Cell Phone Purses |
8 |
A |
4127 |
0 |
cell-phone-purses |
20047 |
|
|
| 9287 |
9288 |
9288/9287 |
Cosmetic Brush/Pencil Bag |
8 |
A |
4127 |
0 |
cosmetic-brush-pencil-bag |
9288 |
|
|
| 16912 |
0 |
16912 |
Pencil Cases |
8 |
A |
4127 |
0 |
pencil-cases |
|
|
|
| 9288 |
0 |
9288 |
Cosmetic Bags |
9 |
A |
4127 |
0 |
cosmetic-bags-en |
|
|
|
| 9912 |
20047 |
20047/9912 |
Crossbody Purses |
9 |
A |
4127 |
0 |
purses-en-5 |
20047 |
|
|
| 22065 |
0 |
22065 |
Easter Baskets |
10 |
A |
4127 |
0 |
easter-baskets-en |
|
|
|
| 20046 |
0 |
20046 |
Tech Cord Organizer |
11 |
A |
4127 |
0 |
tech-cord-organizer |
|
|
|
| 9289 |
0 |
9289 |
Pocket Tissue Cover |
12 |
A |
4127 |
0 |
pocket-tissue-cover |
|
|
|
| 9264 |
0 |
9264 |
Coin Purses/Earbud Pouch |
13 |
A |
4127 |
0 |
coin-purses |
|
|
|