tricircle/tricircle/db
Fangming Liu e690fca534 Support pagination for job list operations
1. What is the problem
The job list operations will retrieve all the items in
the database, which will consume too much memory and take long time
to response when the results are considerably large.

2. What is the solution for the problem
To reduce load on the service, list operations will return a maximum
number of items at a time by pagination. To navigate the collection,
the parameters limit and marker can be set in the URI. For example:

/v1.0/jobs?limit=2000&marker=500

The marker parameter is the ID of the last item in the previous list.
The limit parameter sets the page size. These parameters are optional.
If the client requests a limit beyond the maximum limit configured by
the deployment, the server returns the maximum limit number of items.
Pagination and filtering can work together for job list operations.

3. What the features need to be implemented to the Tricircle to
realize the solution
Add pagination feature for job list operations.

Change-Id: I95168a547ac88d8a680102acaac1bdda6dde0733
2017-07-26 10:10:59 +08:00
..
migrate_repo Add Service Function Chain support(1) 2017-06-27 17:00:11 +08:00
__init__.py cascade_service: DB infrastructure 2015-08-11 10:57:27 +00:00
api.py Support pagination for job list operations 2017-07-26 10:10:59 +08:00
core.py Support pagination for resource routing list operations 2017-07-12 17:09:48 +08:00
migration_helpers.py DB migration version 2017-01-12 11:32:48 +08:00
models.py Add Service Function Chain support(1) 2017-06-27 17:00:11 +08:00
opts.py Move statless design from experiment to master branch 2016-01-14 12:56:57 +08:00