Query time 0.00202
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "33.44"
},
"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": 74,
"rows_produced_per_join": 0,
"filtered": "0.07",
"cost_info": {
"read_cost": "33.37",
"eval_cost": "0.01",
"prefix_cost": "33.38",
"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` = 237) 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 (3,5,14,20,21,23,26,28,4,46,71,75,76,78,86,97,106,109,110,116,117,118,123,124,125,178,202,22751,204,206,47,219,220,48,239,242,179,265,268,12,55,306,56,308,22,342,345,349,353,367,373,378,20087,395,411,412,413,414,415,416,417,418,419,421,422,423,424,425,426,512,964,1549,2221,3225)))"
}
},
{
"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": "33.40",
"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": "33.44",
"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 |
512 |
0 |
512 |
All Items |
1 |
A |
237 |
0 |
all-items-en |
|
|
|
411 |
0 |
411 |
Adult Bibs |
2 |
A |
237 |
0 |
adult-bibs |
|
|
|
414 |
0 |
414 |
Chef Hats |
3 |
A |
237 |
0 |
chef-hats |
|
|
|
426 |
0 |
426 |
Pillowcases |
4 |
A |
237 |
0 |
pillowcases |
|
|
|
1549 |
0 |
1549 |
What's New? |
5 |
A |
237 |
0 |
whats-new-en |
|
|
|
412 |
0 |
412 |
Adult Aprons |
6 |
A |
237 |
0 |
adult-aprons |
|
|
|
3225 |
0 |
3225 |
Bowling Towels |
7 |
A |
237 |
0 |
bowling-towels |
|
|
|
418 |
0 |
418 |
Granny Panties |
8 |
A |
237 |
0 |
granny-panties |
|
|
|
423 |
0 |
423 |
Beautiful Bags |
9 |
A |
237 |
0 |
beautiful-bags |
|
|
|
413 |
0 |
413 |
Aprons For Kids |
10 |
A |
237 |
0 |
aprons-for-kids |
|
|
|
424 |
0 |
424 |
Casserole Carriers |
11 |
A |
237 |
0 |
casserole-carriers |
|
|
|
425 |
0 |
425 |
Chef Hats For Kids |
12 |
A |
237 |
0 |
chef-hats-for-kids |
|
|
|
417 |
0 |
417 |
I Love My Pet Items |
13 |
A |
237 |
0 |
i-love-my-pet-items |
|
|
|
421 |
0 |
421 |
Christmas Stockings |
14 |
A |
237 |
0 |
christmas-stockings |
|
|
|
415 |
0 |
415 |
Personalized Sweatshirts |
15 |
A |
237 |
0 |
personalized-sweatshirts |
|
|
|
419 |
0 |
419 |
Kitchen Appliance Covers |
16 |
A |
237 |
0 |
kitchen-appliance-covers |
|
|
|
422 |
0 |
422 |
Golf Towels Personalized |
17 |
A |
237 |
0 |
golf-towels |
|
|
|
2221 |
0 |
2221 |
Personalized Men's Boxers |
18 |
A |
237 |
0 |
personalized-mens-boxers |
|
|
|
416 |
0 |
416 |
Personalized Family Throws/Quilts |
19 |
A |
237 |
0 |
personalized-family-throws-quilts |
|
|
|