I use
$.getJSON( surl, pars, function(textDoc){});
to call database execution in a loop for about 100 execution or so.
Therefore, reached the maximum connection limit.
Is there any way to queue the job or made the call synchronous ?
synchronous call or limit max number of call?
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: synchronous call or limit max number of call?
Probably you want to move the loop to the server. It will return all the data. Then you can loop through that with Javascript.
(#10850)
Re: synchronous call or limit max number of call?
cannot. The server has time limit for 10s. Which just enough for 1 item.Christopher wrote:Probably you want to move the loop to the server. It will return all the data. Then you can loop through that with Javascript.