Query time 0.00244
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "14.96"
},
"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": 33,
"rows_produced_per_join": 0,
"filtered": "0.15",
"cost_info": {
"read_cost": "14.89",
"eval_cost": "0.00",
"prefix_cost": "14.89",
"data_read_per_join": "133"
},
"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` = 6358) 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,23,36,45,109,112,114,116,117,118,183,184,185,191,2566,23015,23016,23017,23018,23019,23020,23021,23022,23023,23024,23025,23057,23067,23076,23077,23111,23116,23203)))"
}
},
{
"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.00",
"prefix_cost": "14.91",
"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.00",
"prefix_cost": "14.96",
"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 |
| 23020 |
0 |
23020 |
Americana |
0 |
A |
6358 |
0 |
americana-en-2 |
|
|
|
| 23015 |
0 |
23015 |
Bowl Fillers |
0 |
A |
6358 |
0 |
primitive-en |
|
|
|
| 23018 |
0 |
23018 |
Christmas |
0 |
A |
6358 |
0 |
christmas-en-76 |
|
|
|
| 23116 |
0 |
23116 |
crows |
0 |
A |
6358 |
0 |
crows |
|
|
|
| 23022 |
0 |
23022 |
Easter |
0 |
A |
6358 |
0 |
easter-en-35 |
|
|
|
| 23017 |
0 |
23017 |
Fall |
0 |
A |
6358 |
0 |
fall-en-16 |
|
|
|
| 23025 |
0 |
23025 |
Fruit |
0 |
A |
6358 |
0 |
fruit |
|
|
|
| 23016 |
0 |
23016 |
Halloween |
0 |
A |
6358 |
0 |
halloween-en-43 |
|
|
|
| 23057 |
0 |
23057 |
Home Decor |
0 |
A |
6358 |
0 |
home-decor-en-102 |
|
|
|
| 23023 |
0 |
23023 |
Ornaments |
0 |
A |
6358 |
0 |
ornaments-en-89 |
|
|
|
| 23067 |
0 |
23067 |
Pin Keep |
0 |
A |
6358 |
0 |
pin-keep |
|
|
|
| 23203 |
0 |
23203 |
Pokes |
0 |
A |
6358 |
0 |
pokes |
|
|
|
| 23024 |
0 |
23024 |
Primitive Decor |
0 |
A |
6358 |
0 |
primitive-en-2 |
|
|
|
| 23076 |
0 |
23076 |
punch needle |
0 |
A |
6358 |
0 |
punch-needle |
|
|
|
| 23077 |
0 |
23077 |
shelf sitter |
0 |
A |
6358 |
0 |
shelf-sitter-en |
|
|
|
| 23111 |
0 |
23111 |
thanksgiving |
0 |
A |
6358 |
0 |
thanksgiving-en-5 |
|
|
|
| 23021 |
0 |
23021 |
Wall Decor |
0 |
A |
6358 |
0 |
wall-decor-en-23 |
|
|
|
| 23019 |
0 |
23019 |
Winter |
0 |
A |
6358 |
0 |
winter-en-6 |
|
|
|