tatey / trace_privately

A robust and fully featured key server for the TracePrivately iOS app
https://trace-privately-demo.herokuapp.com
MIT License
1 stars 0 forks source link

Thoughts on pagination #3

Open tatey opened 4 years ago

tatey commented 4 years ago

We need to keep the server sustainable. One way of doing that would be to limit the number of records loaded from GET /api/infected and take a page param. Something like /api/infected?page=2. The response would need to include data either in the header or body to tell the client how many more pages there are.

tatey commented 4 years ago

Since 54c61e43bf40538b73f1ed872a73b37cba2110fe the maximum date you can retrieve infected keys is from 30 days ago.