synchronous call or limit max number of call?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
wvoyance
Forum Contributor
Posts: 135
Joined: Tue Apr 17, 2012 8:24 pm

synchronous call or limit max number of call?

Post by wvoyance »

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 ?
User avatar
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?

Post by Christopher »

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)
User avatar
wvoyance
Forum Contributor
Posts: 135
Joined: Tue Apr 17, 2012 8:24 pm

Re: synchronous call or limit max number of call?

Post by wvoyance »

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.
cannot. The server has time limit for 10s. Which just enough for 1 item.
Post Reply