Query time 0.00382
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "37.05"
},
"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": 82,
"rows_produced_per_join": 0,
"filtered": "0.06",
"cost_info": {
"read_cost": "36.98",
"eval_cost": "0.01",
"prefix_cost": "36.99",
"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` = 5415) 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,14,23,36,4,45,84,86,87,71,91,90,100,109,114,118,123,179,183,184,185,209,47,218,48,240,260,12,58,291,59,313,367,368,374,380,381,388,20087,394,2566,51,6638,6644,6646,6648,5,27,6720,6727,6731,46,195,22740,7651,125,9793,6639,11179,16223,16224,16225,16221,16226,16228,16236,16319,17192,20084,20963,20964,20934,20965,20966,20967,20969,20991,7580,22667,22750,23158,23208)))"
}
},
{
"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": "37.00",
"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": "37.05",
"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 |
| 20966 |
20934 |
20934/20966 |
Bookmarks |
0 |
A |
5415 |
0 |
bookmarks |
20934 |
|
|
| 20967 |
20934 |
20934/20967 |
Car Charms |
0 |
A |
5415 |
0 |
car-charms |
20934 |
|
|
| 20963 |
17192 |
17192/20963 |
Cloths |
0 |
A |
5415 |
0 |
cloths |
17192 |
|
|
| 20964 |
17192 |
17192/20964 |
Coasters |
0 |
A |
5415 |
0 |
coasters |
17192 |
|
|
| 16224 |
16223 |
16223/16224 |
Colorful |
0 |
A |
5415 |
0 |
colorful |
16223 |
|
|
| 20965 |
20934 |
20934/20965 |
Keychains |
0 |
A |
5415 |
0 |
keychains |
20934 |
|
|
| 16225 |
16223 |
16223/16225 |
Neutrals |
0 |
A |
5415 |
0 |
neutrals |
16223 |
|
|
| 23208 |
16221 |
16221/23208 |
Patriotic |
0 |
A |
5415 |
0 |
patriotic |
16221 |
|
|
| 20991 |
16221 |
16221/20991 |
St. Patrick's Day |
0 |
A |
5415 |
0 |
st.-patricks-day |
16221 |
|
|
| 23158 |
0 |
23158 |
Totes |
0 |
A |
5415 |
0 |
totes-en-7 |
|
|
|
| 20084 |
16221 |
16221/20084 |
Valentine's Day |
0 |
A |
5415 |
0 |
valentines-day |
16221 |
|
|
| 20969 |
20934 |
20934/20969 |
Wallets/Cases |
0 |
A |
5415 |
0 |
wallets-cases |
20934 |
|
|
| 17192 |
0 |
17192 |
Home |
1 |
A |
5415 |
0 |
cloths |
|
|
|
| 16228 |
16221 |
16221/16228 |
Christmas |
2 |
A |
5415 |
0 |
christmas-en |
16221 |
|
|
| 20934 |
0 |
20934 |
Personal |
2 |
A |
5415 |
0 |
personal |
|
|
|
| 16223 |
0 |
16223 |
Wall Hangings |
30 |
A |
5415 |
0 |
wall-hangings-en-6 |
|
|
|
| 16221 |
0 |
16221 |
Seasonal/Holiday |
60 |
A |
5415 |
0 |
seasonal-holiday-en-4 |
|
|
|