Answer the question
In order to leave comments, you need to log in
Are multiple parallel queries faster than a single serial one?
Hello.
Given : web application. On the client (js, jquery), Ajax requests of the form
$.ajax({
url: "some.php",
data: { whatyouwants: "smth1,smth2,smth3" }
})
{smth1:[...], smth2:[...], smth3:[...]}
and returned to the client. The database structure cannot be changed. $.ajax({
url: "some.php",
data: { whatyouwants: "smthN" }
})
Answer the question
In order to leave comments, you need to log in
Is there a rational grain in query parallelization?
Parallelization makes sense, of course. It just needs to be done at all levels. Apache has not been used for several years, so I can’t say anything here, but judging by the symptoms described, your DB is the plug.
I didn’t work specifically with firebird, but for sure it can be parallelized through replication.
Those. now you have 3 php scripts making queries to the database. The database processes requests synchronously, so there is no speed gain. You can either look in the database settings for asynchronous query processing, but it is unlikely that there is such a thing, or replicate the database as a master slave and request data from different left-servers of the database, then there will be an increase in speed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question