Query time 0.00145
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "26.44"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "categories",
"access_type": "range",
"possible_keys": [
"c_status",
"id_path",
"index_categories_on_deleted_at"
],
"key": "id_path",
"used_key_parts": [
"id_path"
],
"key_length": "767",
"rows_examined_per_scan": 58,
"rows_produced_per_join": 0,
"filtered": "0.10",
"index_condition": "(`goimagine`.`categories`.`id_path` like '2/%')",
"cost_info": {
"read_cost": "26.35",
"eval_cost": "0.01",
"prefix_cost": "26.36",
"data_read_per_join": "155"
},
"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` = 0) 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))"
}
},
{
"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": "26.39",
"data_read_per_join": "269"
},
"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.05",
"eval_cost": "0.01",
"prefix_cost": "26.44",
"data_read_per_join": "100"
},
"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 |
157 |
19 |
2/19/157 |
Anklets |
10 |
A |
0 |
0 |
anklets |
2/19 |
|
|
170 |
18 |
2/18/170 |
Beaded Bracelets |
10 |
A |
0 |
0 |
beaded-bracelets |
2/18 |
|
|
131 |
13 |
2/13/131 |
Beaded Necklaces |
10 |
A |
0 |
0 |
beaded |
2/13 |
|
|
147 |
17 |
2/17/147 |
Dangle & Drop Earrings |
10 |
A |
0 |
0 |
dangle-and-drop |
2/17 |
|
|
154 |
81 |
2/81/154 |
Enamel Pins |
10 |
A |
0 |
0 |
enamel-pins |
2/81 |
|
|
13 |
2 |
2/13 |
Necklaces |
10 |
A |
0 |
0 |
necklaces |
2 |
|
|
138 |
16 |
2/16/138 |
Stackable Rings |
10 |
A |
0 |
0 |
stackable |
2/16 |
|
|
171 |
18 |
2/18/171 |
Bangles |
20 |
A |
0 |
0 |
bangles |
2/18 |
|
|
155 |
81 |
2/81/155 |
Novelty Pins |
20 |
A |
0 |
0 |
novelty-pins |
2/81 |
|
|
132 |
13 |
2/13/132 |
Pendants |
20 |
A |
0 |
0 |
pendants |
2/13 |
|
|
168 |
15 |
2/15/168 |
Ring Dishes |
20 |
A |
0 |
0 |
ring-dishes |
2/15 |
|
|
16 |
2 |
2/16 |
Rings |
20 |
A |
0 |
0 |
rings |
2 |
|
|
139 |
16 |
2/16/139 |
Statement Rings |
20 |
A |
0 |
0 |
statement |
2/16 |
|
|
148 |
17 |
2/17/148 |
Stud Earrings |
20 |
A |
0 |
0 |
stud-earrings |
2/17 |
|
|
165 |
83 |
2/83/165 |
Watch Bands |
20 |
A |
0 |
0 |
watch-bands |
2/83 |
|
|
156 |
81 |
2/81/156 |
Brooches |
30 |
A |
0 |
0 |
brooches |
2/81 |
|
|
133 |
13 |
2/13/133 |
Chokers |
30 |
A |
0 |
0 |
chokers |
2/13 |
|
|
172 |
18 |
2/18/172 |
Cuff Bracelets |
30 |
A |
0 |
0 |
cuff-bracelets |
2/18 |
|
|
17 |
2 |
2/17 |
Earrings |
30 |
A |
0 |
0 |
earrings |
2 |
|
|
149 |
17 |
2/17/149 |
Hoop Earrings |
30 |
A |
0 |
0 |
hoop-earrings |
2/17 |
|
|
169 |
15 |
2/15/169 |
Jewelry Storage |
30 |
A |
0 |
0 |
jewelry-storage |
2/15 |
|
|
18 |
2 |
2/18 |
Bracelets |
40 |
A |
0 |
0 |
bracelets |
2 |
|
|
173 |
18 |
2/18/173 |
Charm Bracelets |
40 |
A |
0 |
0 |
charm-bracelets |
2/18 |
|
|
134 |
13 |
2/13/134 |
Charm Necklaces |
40 |
A |
0 |
0 |
charm |
2/13 |
|
|
150 |
17 |
2/17/150 |
Cuff & Wrap Earrings |
40 |
A |
0 |
0 |
cuff-and-wrap-earrings |
2/17 |
|
|
137 |
13 |
2/13/137 |
Statement Necklaces |
45 |
A |
0 |
0 |
statement |
2/13 |
|
|
135 |
13 |
2/13/135 |
Monogram & Name |
50 |
A |
0 |
0 |
monogram-and-name |
2/13 |
|
|
81 |
2 |
2/81 |
Pins & Brooches |
50 |
A |
0 |
0 |
pins-and-brooches |
2 |
|
|
19 |
2 |
2/19 |
Body Jewelry |
60 |
A |
0 |
0 |
body-jewelry |
2 |
|
|
136 |
13 |
2/13/136 |
Chains |
60 |
A |
0 |
0 |
chains |
2/13 |
|
|
143 |
16 |
2/16/143 |
Engagement Rings |
60 |
A |
0 |
0 |
engagement |
2/16 |
|
|
175 |
18 |
2/18/175 |
Woven & Braided Bracelets |
60 |
A |
0 |
0 |
woven-and-braided-bracelets |
2/18 |
|
|
15 |
2 |
2/15 |
Jewelry Accessories |
70 |
A |
0 |
0 |
accessories |
2 |
|
|
144 |
16 |
2/16/144 |
Promise Rings |
70 |
A |
0 |
0 |
promise-rings |
2/16 |
|
|
82 |
2 |
2/82 |
Charms & Pendants |
80 |
A |
0 |
0 |
charms-and-pendants |
2 |
|
|
11918 |
18 |
2/18/11918 |
Wrap Bracelets |
80 |
A |
0 |
0 |
wrap-bracelets |
2/18 |
|
|
326 |
2 |
2/326 |
Jewelry Sets |
122 |
A |
0 |
0 |
jewelry-sets |
2 |
|
|
11913 |
17 |
2/17/11913 |
Chandelier Earrings |
265 |
A |
0 |
0 |
chandelier-earrings |
2/17 |
|
|