Rest pagination queries
Make the SubscriptionService
and the ListRequests
classes return SQL query objects, and adapt the REST pagination to properly handle such objects.
As a result, SQL queries will use the SQL LIMIT
and OFFSET
instructions instead of returning all records and slicing in Python.
Fixes #180 (closed)