I am developing a project which is built in CakePHP and using jQuery in it. I have a script which need to be called by an ajax request. This request do many manipulation in database and takes too much time. Between the execution it is writing its status in a seperate file so i can see the status of script execution. Every time it open the file write in it the status of execution and then close the file, to remove the problem of file lock.
Now When this script is in progress I am sending another ajax request which just read that file and get the content back periodically after every 20 seconds. Now the problem is when first ajax request is busy with mysql, any other request to server will be on halt. Mysql creating processes of all these requests and put this request in sleep mode. I think its due to framework, cause on every request framework need to check the database. When the first main script completed all other request are also get completed.
Is there any way that i can get the ajax progress ?? Correct me if I am wrong somewhere…!!! Thanks in advance.
I am developing a project which is built in CakePHP and using jQuery in
Share
I did it. I just need to call the script which read the file and send back the data from a seperate php file. No need to call the framework…!!!