# Multiple Ajax problem

**URL:** <https://www.ruby-forum.com/t/multiple-ajax-problem/146116>\
**Category:** Rails\
**Created:** [August 18, 2008, 7:31am UTC](https://www.ruby-forum.com/t/multiple-ajax-problem/146116 "2008-08-18T07:31:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 18, 2008, 7:31am UTC](https://www.ruby-forum.com/t/multiple-ajax-problem/146116/1 "2008-08-18T07:31:11Z")

</div>

I am trying to do an ajax page that is going to have multiple ajax  
requests going on. The issue is that when the first request gets  
initiated I have other requests going on for some DB updates and they  
do not complete out until the main request gets completed. I am  
running mongrel on a dev env.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [August 18, 2008, 9:11am UTC](https://www.ruby-forum.com/t/multiple-ajax-problem/146116/2 "2008-08-18T09:11:50Z")

</div>

On Aug 18, 6:30 am, Me [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I am trying to do an ajax page that is going to have multiple ajax  
> requests going on. The issue is that when the first request gets  
> initiated I have other requests going on for some DB updates and they  
> do not complete out until the main request gets completed. I am  
> running mongrel on a dev env.

That’s the way rails works (for now). It’s single threaded, so only  
one request per mongrel.

Fred
