db/limits: Limit SQL query results
Đang mở
store
- Ngôn ngữ chính
- Rust
- Star
- 104
- Fork
- 138
- Merge trung bình
- 1 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 56
Mô tả
At the RPC level we do have the notion of `too_many_entries`, however, to come to the decision we already did a full SQL query of i.e. all assets.
## Proposal
Limit the SQL queries to `N+1` entries, where `N` is the maximum number we would return without yielding a `too_many_entries` response to the requester. That way we don't burn CPU cycles on very large assets.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.