HTTP Data API
...
Querying: HTTP (Legacy)
408 Timeout Responses (Legacy)
if your queries target large collections and match thousands of documents, you may recieve a 408 request timeout response status code for more information, see the official mozilla developer network (mdn) web docs > " https //developer mozilla org/en us/docs/web/http/status/408 " topic to manage performance and prevent potential performance issues that may occur as a result to attempting to retrieve a large number of documents in a single query, by default, sets of matching documents is limited to a count of 1000 to resolve this error, break down one large query into several selective queries for example, the following curl request retrieves documents within the people collection with the field property of name set to the value of john limits the number of results returned to 2 instructs to sort results by id in ascending ( asc ) order indicates that the response is to include not only the values but also information ( latestvaluesandtypes ) about their types curl curl x post 'https //{app id} cloud ditto live/api/v4/store/find' \\ \ header 'content type application/json' \\ \ header 'authorization bearer $api key' \\ \ data raw '{ "collection" "people", "query" "name==\\'john\\'", "limit" 2, "sort" \[ {"property" " id", "direction" "asc"} ], "serializedas" "latestvaluesandtypes" }' once invoked, you'd receive the following response json { "value" { " id" "123abc", "fields" { "name" { "register" { "value" "john" }, }, "friends" { "register" { "value" \["susan"] }, }, "ordercount" { "counter" { "value" 5 } }, } } }