Configuring the Max Page Size for OData Feeds
When a user sends a request to an Anzo Data on Demand endpoint, they do not necessarily know the total number of results that will be returned. In some cases, the result set can be hundreds of millions of values, and the request times out before the results can be returned. You can configure the Data on Demand service to specify a maximum limit on the number of results that can be returned for a single OData feed request. If a user sends a request and the result set is larger than the maximum value, Anzo will limit the results to the configured maximum value. Follow the instructions below to configure the Data on Demand service to enforce a maximum page size.
- In the Administration application, expand the Servers menu and click Advanced Configuration. Click I understand and accept the risk.
- Search for the Anzo DataOnDemand bundle and view its details.
- Click the Services tab and expand DataOnDemandServiceActivator.
- Click Add Property next to the service name. Anzo opens the Add Property dialog box.
- In the Name field, specify com.cambridgesemantics.anzo.dataondemand.enforcePageSize, and set the Value to true. Then click Save.
- Click Add Property again. In the Name field, specify com.cambridgesemantics.anzo.dataondemand.maxPageSize, and set the Value to the maximum number of results that to return per request. Then click Save. The two settings are displayed on the Services screen. For example:
- Restart Anzo to apply the configuration changes.