Paginate the .info API responses
|Assignee:||Javi Fontan||% Done:|
|Category:||Core & System|
|Target version:||Release 4.6|
Request made during the OpenNebulaConf
feature #2371: add pagination to pool info
When the end_id of pool.info xmlrpc call is lower than -1 the parameters
do not refer to object ids but offset and cuantity used for pool pagination.r
The SQL query will have "LIMIT start_id,-end_id".
feature #2371: add pagination to ruby oca, cli and sunstone
There is a new pool method called get_hash that uses pagination when possible.
The default page size can be changed with the environment variable
ONE_POOL_PAGE_SIZE. Any value > 2 will set a page size, a non
numeric value disables pagination.
Paginated pools are parsed using sax instead of dom so this makes the parse
a bit faster. It will also detect Ox gem (https://github.com/ohler55/ox) and
will use it as it is much faster than Nokogiri.
Screen cleaning in top command is done after retrieving the pool reducing