In both datagrid_edit.pt and datagrid_read.pt templates, sServerMethod is based form method. If the post method is 'POST' and we have 10 datagrids in the form. The server could run out of instance to serve these 'POST' request, esp if a load balancer assumes all POST requests are likely to be writes and optimises them to try to prevent write conflicts.
Problem
In both
datagrid_edit.pt
anddatagrid_read.pt
templates,sServerMethod
is based form method. If the post method is 'POST' and we have 10 datagrids in the form. The server could run out of instance to serve these 'POST' request, esp if a load balancer assumes all POST requests are likely to be writes and optimises them to try to prevent write conflicts.Options
Always use GET
[√] Change
sServerMethod
to alwaysGET
. Since no data is sent to the server and only data read it makes sense to only use GET.Don't use AJAX
[√]
len(options/fieldvalue)
less than 10 don't use any AJAX but instead load the data at render time usingaData
paramUser chooses
[ ] Create a new parameter for datagrid field and pass it to
sServerMethod