Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-02-2008, 10:50 AM
Junior Member
 
Join Date: Jun 2007
Location: Barcelona
Posts: 8
Default MSSQL cannot handle asynchronous queries?

I am using ZF 1.5.1, and Zend_Db_Select object with PDO_MSSQL adapter.

I have a javascript function that sends 2 queries to the MS SQL database with AJAX (jQuery getJSON). The first query is huge, while the second is a simple select. Given the "A" (asynchronous) of AJAX, I was expecting to the second query (the simplest one) to give the result before the huge query.

But what happens is that MS SQL receives the queries, and processes them synchronously: the first huge query is done, and only once it ends, the second query is done.

Is this normal? Shouldn't the database handle queries asynchronously?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:19 PM.