Query time 0.00130
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "9.10"
},
"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": 20,
"rows_produced_per_join": 0,
"filtered": "0.25",
"cost_info": {
"read_cost": "9.02",
"eval_cost": "0.00",
"prefix_cost": "9.03",
"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` = 7040) 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,367,368,369,370,371,372,373,375,2566,6648,16322,16323,16324,16325,16484,17468,20522,20591)))"
}
},
{
"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.00",
"prefix_cost": "9.05",
"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": "9.10",
"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 |
| 16324 |
0 |
16324 |
All Items |
0 |
A |
7040 |
0 |
all-products-en-32 |
|
|
|
| 16484 |
16324 |
16324/16484 |
Perfectly Imperfect |
0 |
A |
7040 |
0 |
imperfects |
16324 |
|
|
| 16322 |
0 |
16322 |
Bags & Purses |
1 |
A |
7040 |
0 |
bags-and-purses-en-3 |
|
|
|
| 20591 |
0 |
20591 |
Backpacks & Convertibles |
2 |
A |
7040 |
0 |
backpacks-and-convertibles |
|
|
|
| 17468 |
0 |
17468 |
Tote Bags |
3 |
A |
7040 |
0 |
tote-bags-en-16 |
|
|
|
| 16325 |
0 |
16325 |
Clutches & Pouches |
4 |
A |
7040 |
0 |
clutches-and-pouches |
|
|
|
| 16323 |
0 |
16323 |
Wallets |
5 |
A |
7040 |
0 |
wallets-en-11 |
|
|
|
| 20522 |
0 |
20522 |
Made to Order Samples |
6 |
A |
7040 |
0 |
made-to-order-samples |
|
|
|