-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Consider adding a new collection property to recommend a paging size #538
Comments
Meeting 2022-01-31: This is a useful proposal, but it requires some experimentation, e.g. in a code sprint. It also isn't something for a corrigendum, so we set the Milestone for v1.1.0. |
@cportele Any chance that this issue could be escalated. Specifically, allow clients to discover a server's (or collection's) paging limit. Without knowing a collection's paging limit in advance, clients cannot effectively and efficiently request large numbers of items. At present our web clients attempt to discover the paging limit from the server's open-api page (if any), for example: However using the open-api page is far from reliable as schema is inconsistent across implementations. To complicate things further, some implementations define a paging limit on a per-collection basis. A workaround we are considering is for clients to perform a dummy request for all items. The client would then obtain the |
Meeting 2024-11-18:
This indicates an approach to parse the OpenAPI definition that is too simple. Maybe we need to add a description how to parse an OpenAPI description to extract information for specific operations. |
Here are some typical values for the “minimum”, “maximum”, and “default” properties of the “limit parameter":
None of these properties can help client implementations that rely on picking a good “limit” for the initial load/display of a collection. These properties affect all collections in an OAFeat service. The default limit of 10 features is too low. Can 3000, 5000, or the maximum of 10,000 be the best paging size that fits all collections? While a paging size of 10,000 works well for a 50,000 point collection, it might not be ideal for a 50,000 polygon collection.
Adding a new property e.g. “RecommendedPagingSize” at the collection level would provide a hint to clients on what could be an ideal paging size for each collection. This removes the guessing factor and makes it the responsibility of the service creator to define this property.
The text was updated successfully, but these errors were encountered: