paginate db result
Instead of returning all the large amount of data as a whole from db, we need to paginate the return objects.
The sqlalchemy backend in oslo already has this kind of capability, so we need to rebase our sqlalchemy implementation on oslo's sqlalchemy to leverage that.
We also need to add this feature for mongoDB and HBase.
Blueprint information
- Status:
- Complete
- Approver:
- Julien Danjou
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- Fengqian
- Definition:
- Obsolete
- Series goal:
- None
- Implementation:
- Blocked
- Milestone target:
- None
- Started by
- Fengqian
- Completed by
- gordon chung
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Add pagination support for MongoDB
Addressed by: https:/
Add pagination support for sqlalchemy database
Addressed by: https:/
Add pagination support of API for database sqlalchemy and mongoDB.
Addressed by: https:/
Change the error message of resource listing in mongodb
Addressed by: https:/
Adjust some APIs' interface of hbase and logging storage backend
Addressed by: https:/
Change test_post_alarm case in test_alarm_
Addressed by: https:/
Change the default sort direction of mongodb to ascending
Addressed by: https:/
Change pagination query method in mongodb
Addressed by: https:/
Add pagination parameter to the base class of stroage
Addressed by: https:/
Add a fake UUID to Meter database model named meter_id
Addressed by: https:/
Add pagination query support for get_samples
Addressed by: https:/
Add next link in Meter/Sample/
Addressed by: https:/
Change test case get_alarm_
marking obsolete, it seems pagination has become too controversial a topic. we will apply mandatory limits for now and revisit pagination work when we have proper buy in from community -- gordc (18.6.15)