Query time 0.03960
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "1154.22"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "categories",
"access_type": "ref",
"possible_keys": [
"c_status",
"index_categories_on_deleted_at"
],
"key": "index_categories_on_deleted_at",
"used_key_parts": [
"deleted_at"
],
"key_length": "6",
"ref": [
"const"
],
"rows_examined_per_scan": 10182,
"rows_produced_per_join": 33,
"filtered": "0.33",
"index_condition": "(`goimagine`.`categories`.`deleted_at` is null)",
"cost_info": {
"read_cost": "120.75",
"eval_cost": "3.39",
"prefix_cost": "1138.95",
"data_read_per_join": "88K"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"level",
"company_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"deleted_at"
],
"attached_condition": "((`goimagine`.`categories`.`company_id` = 66) 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`.`level` <= 3))"
}
},
{
"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": 33,
"filtered": "100.00",
"cost_info": {
"read_cost": "11.88",
"eval_cost": "3.39",
"prefix_cost": "1154.22",
"data_read_per_join": "154K"
},
"used_columns": [
"category_id",
"lang_code",
"category"
]
}
}
]
}
}
}
Result
| category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
| 1285 |
1170 |
1170/1285 |
4th of July |
0 |
A |
66 |
| 1302 |
0 |
1302 |
ALL PRODUCTS |
0 |
A |
66 |
| 1177 |
0 |
1177 |
Anklets |
0 |
A |
66 |
| 1181 |
1165 |
1165/1181 |
Beach Stone |
0 |
A |
66 |
| 1173 |
1164 |
1164/1173 |
Beach Stone |
0 |
A |
66 |
| 1182 |
1177 |
1177/1182 |
Beaded |
0 |
A |
66 |
| 1174 |
1164 |
1164/1174 |
Beaded |
0 |
A |
66 |
| 1273 |
1165 |
1165/1273 |
Beaded |
0 |
A |
66 |
| 1178 |
0 |
1178 |
Belly Rings |
0 |
A |
66 |
| 1267 |
1170 |
1170/1267 |
Christmas |
0 |
A |
66 |
| 1188 |
1178 |
1178/1188 |
Dangle |
0 |
A |
66 |
| 1165 |
0 |
1165 |
Earrings |
0 |
A |
66 |
| 1200 |
0 |
1200 |
Eye Glass Chains & Lanyards |
0 |
A |
66 |
| 1266 |
1170 |
1170/1266 |
Halloween |
0 |
A |
66 |
| 1170 |
0 |
1170 |
Holiday |
0 |
A |
66 |
| 1202 |
0 |
1202 |
Key chains |
0 |
A |
66 |
| 1168 |
0 |
1168 |
Men’s Jewelry |
0 |
A |
66 |
| 1164 |
0 |
1164 |
Necklaces |
0 |
A |
66 |
| 1189 |
1178 |
1178/1189 |
Non-dangle |
0 |
A |
66 |
| 1176 |
1164 |
1164/1176 |
Pendant |
0 |
A |
66 |
| 1175 |
1164 |
1164/1175 |
Sea Bean |
0 |
A |
66 |
| 12367 |
1177 |
1177/12367 |
Sea Glass |
0 |
A |
66 |
| 1179 |
1165 |
1165/1179 |
Sea Glass |
0 |
A |
66 |
| 1171 |
1164 |
1164/1171 |
Sea Glass |
0 |
A |
66 |
| 1183 |
1177 |
1177/1183 |
Shell |
0 |
A |
66 |
| 1180 |
1165 |
1165/1180 |
Shell |
0 |
A |
66 |
| 1172 |
1164 |
1164/1172 |
Shell |
0 |
A |
66 |
| 1268 |
1170 |
1170/1268 |
St Patrick's Day |
0 |
A |
66 |
| 1272 |
1165 |
1165/1272 |
Statement |
0 |
A |
66 |
| 1265 |
1170 |
1170/1265 |
Valentine's Day |
0 |
A |
66 |
| 1197 |
0 |
1197 |
Wind Chimes - Suncatchers |
0 |
A |
66 |
| 1287 |
1165 |
1165/1287 |
Wood and seed |
0 |
A |
66 |