Query time 0.00158
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "17.22"
},
"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": 38,
"rows_produced_per_join": 0,
"filtered": "0.13",
"cost_info": {
"read_cost": "17.14",
"eval_cost": "0.01",
"prefix_cost": "17.14",
"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` = 7131) 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 (5,26,4,52,12,56,77,109,114,179,262,267,57,288,58,291,319,321,323,2566,97,6726,16555,16543,16558,16544,16545,16560,16547,16548,16549,16550,16559,16551,16552,16554,16556,16557)))"
}
},
{
"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": "17.17",
"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": "17.22",
"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 |
| 16544 |
16558 |
16558/16544 |
BodySplashes |
0 |
A |
7131 |
0 |
bodysplashes |
16558 |
|
|
| 16545 |
16555 |
16555/16545 |
Chakra Blends |
0 |
A |
7131 |
0 |
chakra-blends-en |
16555 |
|
|
| 16547 |
16560 |
16560/16547 |
Kids Collection |
0 |
A |
7131 |
0 |
kids-collection |
16560 |
|
|
| 16543 |
16555 |
16555/16543 |
Ritual Blends |
0 |
A |
7131 |
0 |
ritual-blends |
16555 |
|
|
| 16557 |
16556 |
16556/16557 |
Signature Blends |
0 |
A |
7131 |
0 |
signature-blends |
16556 |
|
|
| 16554 |
16555 |
16555/16554 |
Smudge Products |
0 |
A |
7131 |
0 |
smudge-products |
16555 |
|
|
| 16548 |
16560 |
16560/16548 |
Summer Collection |
0 |
A |
7131 |
0 |
summer-collection |
16560 |
|
|
| 16549 |
16560 |
16560/16549 |
The Love Line |
0 |
A |
7131 |
0 |
the-love-line |
16560 |
|
|
| 16551 |
16559 |
16559/16551 |
Therapeutic Rollerblends |
0 |
A |
7131 |
0 |
therapeutic-rollerblends |
16559 |
|
|
| 16550 |
16558 |
16558/16550 |
Therapeutic Sprays |
0 |
A |
7131 |
0 |
therapeutic-sprays |
16558 |
|
|
| 16555 |
0 |
16555 |
Let's get Witchy |
1 |
A |
7131 |
0 |
lets-get-witchy |
|
|
|
| 16559 |
0 |
16559 |
Rollerblends |
2 |
A |
7131 |
0 |
rollerblends |
|
|
|
| 16558 |
0 |
16558 |
Sprays |
3 |
A |
7131 |
0 |
sprays |
|
|
|
| 16556 |
0 |
16556 |
Undiluted Essential Oils |
4 |
A |
7131 |
0 |
undiluted-essential-oils |
|
|
|
| 16552 |
0 |
16552 |
Essential Oil Sets |
5 |
A |
7131 |
0 |
essential-oil-sets |
|
|
|
| 16560 |
0 |
16560 |
Collections |
6 |
A |
7131 |
0 |
collections-en-3 |
|
|
|