repotrial / nedrexapi

Code relating to the NeDRex API.
GNU General Public License v3.0
0 stars 1 forks source link

Implement enforced pagination for all routes that can return data from collections #8

Open james-skelton opened 2 years ago

james-skelton commented 2 years ago

This will prevent the API from maxing out the server's resources by trying to load large amounts of data into memory at once. At present, the maximum limit will be set to 10,000. If this becomes an issue in future, this can be lowered.

james-skelton commented 2 years ago

To-do:

*Use a .get() approach so that a default value is chosen if the configuration doesn't set one.

general.py

ppi.py

variant.py

james-skelton commented 2 years ago

Pagination is now implemented. The only route (that I'm aware of) which could have it implemented and currently does not is the get_node_ids route.