overall environment: Apache2.4.25 + PHP5.6 + MySQL5.5.57
demand:
2
question:
6000Apache Server
PHPignore_user_abort(true);set_time_limit(0);
practice:
question:
6000
ob_flush() flush()2500
cpu
overall environment: Apache2.4.25 + PHP5.6 + MySQL5.5.57
demand:
2
question:
6000Apache Server
PHPignore_user_abort(true);set_time_limit(0);
practice:
question:
6000
ob_flush() flush()2500
cpu
I don't know if your scene is the same as mine.
I import it in batches and extract the data in the database for comparison and verification.
method 1: queue execution, front-end polling results in response.
method 2: front-end polling promotes the progress of the task, splits the whole task into steps, reads, transforms, checks Filter in batches (the front-end shows the progress, prevents timeouts from comparing a fixed amount of data each time), saves valid record data, and finally updates and inserts it at a time.
ignore_user_abort (true)
and set_time_limit (0). After
is set, the timeout still reports an error, that is, the timeout of apache
is not set
finally, a solution triggered by a browser is given:
split the task instead of PHP
in JS
, and split it into multiple Ajax HTTP requests, ensuring that each request does not exceed 30 seconds, so that how long it takes to execute
Previous: How to use the moudle function of golang version 1.11?
Next: Why use Baidu Maps and Amap jsapi positioning, pc does not allow mobile phones but very accurate?
I have a vegetable chicken at the front end. Recently, there is a new demand for the company s project, which has been maintained by others before. the front end uses a framework built by pHp and uses the memcached plug-in. After the project runs, ,...
when learning the knowledge of mysql penetration, the attempt to read the file on disk D with sql statement failed as follows: root@host after testing, the value of secure-file-priv is not valid even if it is empty. mysql,apache is running normal...