Github user bhaisaab commented on the pull request:
https://github.com/apache/cloudstack/pull/751#issuecomment-135661968
Did some API request size and time comparisons for various pagesizes
against a large template collection (more than 4000 templates across 30+ zones);
Page Size | API response size (KB) | Time (ms)
--------- | ---------------------- | ---------
20 | 15.8 | 360
100 | 77.1 | 366
150 | 117 | 448
200 | 157 | 408
250 | 199 | 440
500 | 402 | 791
Based on this data, on the lowest side pagesize of 100 seems alright for
the time taken vs the payload size, but has more risk on a lower reduced list
size (not enough to render a scroll); on the higher side pagesize of 200-250
seems alright considering roughly similar time.
Refs:
ps=20

ps=100

ps=150

ps=200

ps=250

ps=500

---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---