Query time 0.00265
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "11.80"
},
"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": 26,
"rows_produced_per_join": 0,
"filtered": "0.19",
"cost_info": {
"read_cost": "11.73",
"eval_cost": "0.01",
"prefix_cost": "11.73",
"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` = 6534) 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 (2,13,15,17,18,23,33,38,132,147,172,4,46,197,14702,14704,14703,17462,17463,17464,17465,17466,17488,17489,17490,17491)))"
}
},
{
"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": "11.75",
"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": "11.80",
"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 |
| 17466 |
17463 |
17463/17466 |
Bracelets |
0 |
A |
6534 |
0 |
bracelets-en-101 |
17463 |
|
|
| 14704 |
14702 |
14702/14704/14702/14704 |
Cuffs and Other Bracelets |
0 |
A |
6534 |
0 |
cuffs-and-other-bracelets |
14702/14704/14702 |
|
|
| 17464 |
17463 |
17463/17464 |
Earrings |
0 |
A |
6534 |
0 |
earrings |
17463 |
|
|
| 17490 |
17462 |
17462/17490 |
Fan Lamps |
0 |
A |
6534 |
0 |
fan-lamps |
17462 |
|
|
| 17491 |
17462 |
17462/17491 |
Glam Gals |
0 |
A |
6534 |
0 |
glam-gals |
17462 |
|
|
| 14702 |
14704 |
14702/14704/14702/14704/14702 |
Jewelry |
0 |
A |
6534 |
0 |
jewelry-en-105 |
14702/14704/14702/14704 |
|
|
| 17463 |
0 |
17463 |
Jewelry |
0 |
A |
6534 |
0 |
jewelry-en-105 |
|
|
|
| 17465 |
17463 |
17463/17465 |
Pendants |
0 |
A |
6534 |
0 |
pendants |
17463 |
|
|
| 17462 |
0 |
17462 |
Stained Glass |
0 |
A |
6534 |
0 |
stained-glass-en-3 |
|
|
|
| 17489 |
17462 |
17462/17489 |
Table Pieces |
0 |
A |
6534 |
0 |
table-pieces |
17462 |
|
|
| 14703 |
14702 |
14702/14704/14702/14703 |
The Eden Collection |
0 |
A |
6534 |
0 |
the-eden-collection |
14702/14704/14702 |
|
|
| 17488 |
17463 |
17463/17488 |
The Eden Collection |
0 |
A |
6534 |
0 |
the-eden-collection |
17463 |
|
|