airqo-platform / airqo-platform/AirQo-api
Optimize Token Fetching Logic in fetchAllExpiringTokens
未關閉
- 主要語言
- JavaScript
- 星號
- 26
- 分支
- 24
- 平均合併
- 5 小時 36 分鐘
- 30 天內合併 PR
- 81
描述
**Description:**
The `fetchAllExpiringTokens` function currently concatenates arrays when fetching tokens in batches. For large numbers of tokens, this could consume significant memory. Consider using a generator function or processing each batch individually to optimize memory usage.
**PR Reference:** https://github.com/airqo-platform/AirQo-api/pull/3634
**Comment Reference:** https://github.com/airqo-platform/AirQo-api/pull/3634#discussion_r1797805176
**Requested by:** @Baalmart
貢獻指南
評估
這個 Issue 還沒有評估資料。