Query time 0.00149
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "12.70"
},
"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": 28,
"rows_produced_per_join": 0,
"filtered": "0.18",
"cost_info": {
"read_cost": "12.63",
"eval_cost": "0.01",
"prefix_cost": "12.64",
"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` = 9683) 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 (78,107,109,123,4,45,187,46,195,200,6639,11179,22555,22554,22556,22557,22558,22559,22560,22561,22562,22563,22564,22565,22566,22567,22568,22570)))"
}
},
{
"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": "12.66",
"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": "12.70",
"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 |
| 22561 |
0 |
22561 |
Auto |
0 |
A |
9683 |
0 |
auto |
|
|
|
| 22560 |
22554 |
22554/22560 |
Drinkware |
0 |
A |
9683 |
0 |
drinkware |
22554 |
|
|
| 22568 |
22565 |
22565/22568 |
Fire Fighter |
0 |
A |
9683 |
0 |
fire-fighter |
22565 |
|
|
| 22557 |
22554 |
22554/22557 |
Glass Cutting Board |
0 |
A |
9683 |
0 |
glass-cutting-board |
22554 |
|
|
| 22563 |
0 |
22563 |
Holiday & Seasonal |
0 |
A |
9683 |
0 |
holiday-and-seasonal-en-5 |
|
|
|
| 22555 |
0 |
22555 |
Home |
0 |
A |
9683 |
0 |
home-en-11 |
|
|
|
| 22554 |
0 |
22554 |
Kitchen |
0 |
A |
9683 |
0 |
kitchen-en-15 |
|
|
|
| 22558 |
0 |
22558 |
Laser Engraved |
0 |
A |
9683 |
0 |
laser-engraved-en |
|
|
|
| 22567 |
22565 |
22565/22567 |
Law Enforcement |
0 |
A |
9683 |
0 |
navy |
22565 |
|
|
| 22566 |
22565 |
22565/22566 |
Military |
0 |
A |
9683 |
0 |
army |
22565 |
|
|
| 22565 |
0 |
22565 |
Military & First Responders |
0 |
A |
9683 |
0 |
military-and-first-responders |
|
|
|
| 22564 |
22563 |
22563/22564 |
Mother's Day |
0 |
A |
9683 |
0 |
mothers-day |
22563 |
|
|
| 22562 |
0 |
22562 |
Personalized |
0 |
A |
9683 |
0 |
personalized-en-7 |
|
|
|
| 22570 |
22565 |
22565/22570 |
RED (Remember Everyone Deployed) Friday |
0 |
A |
9683 |
0 |
red-remember-everyone-deployed-friday |
22565 |
|
|
| 22559 |
0 |
22559 |
Sublimated |
0 |
A |
9683 |
0 |
sublimated |
|
|
|
| 22556 |
22554 |
22554/22556 |
Wood Cutting Board |
0 |
A |
9683 |
0 |
wood-cutting-board |
22554 |
|
|