-
Notifications
You must be signed in to change notification settings - Fork 30
Dynamic pagination for _get_groups and _get_objects #219
base: master
Are you sure you want to change the base?
Conversation
I'm working thru the tests that went obsolete with this PR. -- |
I'm considering the continued use of the 'size' parameter, setting a sensible default limit, such as 100 rows per request. If we have a system with thousands of endpoints. I think it would be nice to have a default behavior that doesn't attempt to retrieve all data in a single, potentially overwhelming request. By retaining the 'size' parameter, we're able to impose an upper limit on the number of entries returned per request by default, thereby preventing potential server overload and latency. Any thougts? -- |
Sure. I simply set the limit to the maximum size allowed by ISE (100), to avoid making too many unnecessary requests when pulling all objects. If size should be retained, then page should as well, no? To allow the user to paginate themselves. |
Perhaps an option for "get all / dynamic pagtionation" or something like that? Thougts? -- |
When using this module, I would expect the endpoints to return all entries. I'd say, if anything, an optional limit/page parameter and the default behavior is to get all entries. |
True, indeed.
Yes, but we "must" take care of backwards compability, or make some good informational communication that we change the default. The dynamic pagination is great feature, and I too really want it to merge.. Any thoughts about my "mumbling"? :) -- |
I'll try to push a +10k endpoints into my dev env today and see how it reacts when doing a get with no "wait time" between the api requests. In prod we have ~129k "total endpoints" and ~10k "active endpoints". |
Sounds good. Backwards compatibility can be done by still having the size and page parameter in the functions? |
I agree, breaking changes is a must. Is it possible for you to make one PR for get_device_groups and dynamic pagination. -- |
I removed the filter from get_device_groups and added that change to a new PR. |
Great! Real Life is the important thing here imho :) -- |
No description provided.