db/limits: Limit SQL query results
Abierto
store
- Lenguaje dominante
- Rust
- Estrellas
- 104
- Forks
- 138
- Merge medio
- 1 d 13 h
- PR fusionados (30 d)
- 56
Descripción
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.
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.