Server-sided limit on the amount of data that can be queried - Mendix Forum

Server-sided limit on the amount of data that can be queried

2

It is related to the paramenter "amount" in the data grid.

 

{
"action": "retrieve_by_xpath",
"params": {
"count": false,
"schema": {
"amount": 20,
"id": "********-****-****-****-************",
"offset": 0,
"sort": [
[
"******.******_*******/*******.*******/*******",
desc"
],
[
"***********",
"asc"
],
[
"createdDate",
"desc"
]
]
},
"xpath": "//*****.*****"
},
"profiledata": {
"*************-**": 219
}
}
 

The XPath expression is send within the request, for example the following request returns a
page with a content-size of 30 KB.
Removing the “amount” parameter increases the response to 4 MB and the response time from
130 ms to 800 ms. All values are approximate.

The solution would be to have a server-sided limit of the amount of data that can be queried. 
This would prevent a Denial-of-Service if an user sends many requests with different parameters.

 

asked
0 answers