Simultaneous queries in the AJAX API?

Posted by Rollbase User on 09-Dec-2012 07:04

Is there any problem with running simultaneous queries in the AJAX API? Should I restrict it to some max number of simultaneous queries?

All Replies

Posted by Admin on 11-Dec-2012 10:02

In case anyone is looking for information on this:



I was able to fire off ~20 queries all at once, and just wait for them to come back. They all complete successfully.



However, it seems there's a per-session limit on AJAX API calls. The limit in my app is 1000 calls per session. If you hit the limit, you can just log out and log back in again to start querying again. But that could be a pain for users, and possibly confusing. So if your page runs a lot of queries every time it loads, and users load it frequently, users might start hitting that per-session limit. Less queries on the page is better to avoid hitting that limit.

Posted by Admin on 11-Dec-2012 18:02

That is correct, we imposed this limit because we found a single customer was able to bring a powerful server to its knees by overusing the AJAX API. Private Cloud customers can increase or virtually eliminate this limit.



Regards,

Matt

This thread is closed