box / boxcli

A command line interface for interacting with the Box API.
https://developer.box.com
Apache License 2.0
222 stars 59 forks source link

feat: add `max-items`, improve list endpoints performance #470

Closed mwwoda closed 1 year ago

mwwoda commented 1 year ago

Added max-items flag that could be used to limit number of items returned by list endpoints. Most of them should support this flag. Improved performance of list endpoints by providing limit of 1000 by default (instead of 100 which is used by the backend if no limit is provided).

Tests for GetFolderItems for 11k records Before: avg 133s After: avg 85s

coveralls commented 1 year ago

Pull Request Test Coverage Report for Build 5044056613


Totals Coverage Status
Change from base Build 5000546676: 0.2%
Covered Lines: 4052
Relevant Lines: 4548

💛 - Coveralls