Query time 0.00234
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "16.77"
},
"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": 37,
"rows_produced_per_join": 0,
"filtered": "0.14",
"cost_info": {
"read_cost": "16.69",
"eval_cost": "0.01",
"prefix_cost": "16.69",
"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` = 733) 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,3,14,17,18,4,45,87,109,118,131,134,137,147,170,172,183,46,205,51,256,373,2512,2513,2514,2515,2517,2518,2519,2520,2521,2522,2523,2524,4869,5567)))"
}
},
{
"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": "16.72",
"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": "16.77",
"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 |
| 2519 |
0 |
2519 |
0rnaments and Birds |
0 |
A |
733 |
0 |
0rnaments |
|
|
|
| 2523 |
0 |
2523 |
Badge Holders |
0 |
A |
733 |
0 |
badge-holders |
|
|
|
| 2520 |
0 |
2520 |
Bags and Purses |
0 |
A |
733 |
0 |
bags-and-purses |
|
|
|
| 2521 |
0 |
2521 |
Bracelets and Cuffs |
0 |
A |
733 |
0 |
bracelets-and-cuffs |
|
|
|
| 2514 |
0 |
2514 |
Earrings |
0 |
A |
733 |
0 |
earrings-en-3 |
|
|
|
| 2512 |
0 |
2512 |
Journal Covers and Padfolios |
0 |
A |
733 |
0 |
journal-covers |
|
|
|
| 2522 |
0 |
2522 |
Key Chains |
0 |
A |
733 |
0 |
key-chains-en-2 |
|
|
|
| 4869 |
0 |
4869 |
Magnets |
0 |
A |
733 |
0 |
magnets-en-4 |
|
|
|
| 2524 |
0 |
2524 |
Mala Necklaces |
0 |
A |
733 |
0 |
mala-necklaces |
|
|
|
| 5567 |
0 |
5567 |
Mustang Horse Items |
0 |
A |
733 |
0 |
mustang-horse-items |
|
|
|
| 2515 |
0 |
2515 |
Necklaces |
0 |
A |
733 |
0 |
necklaces-en-13 |
|
|
|
| 2513 |
0 |
2513 |
Wallets |
0 |
A |
733 |
0 |
wallets |
|
|
|
| 2517 |
0 |
2517 |
Wreaths |
0 |
A |
733 |
0 |
wreaths-en-2 |
|
|
|