Simple webpage timeout when the PHPYii framework updates multiple data entries
Source: Internet
Author: User
When the PHPYii framework updates multiple data entries, it is easy for the webpage to time out. For example, when I want to update many tables, the webpage will easily Time Out. PLMH1: model ()-& gt; updateAll (array ('visitnum' = & gt; 'V '. $ _ POST ['inputnum']), 'subjid =: SUBJID & n when the PHP Yii Framework updates multiple data records, it is easy for the webpage to time out.
If I want to update many tables, it is easy for the webpage to time out.
The error message is as follows:
Fatal error: Maximum execution time of 30 seconds exceeded in D: \ web_root \ rd1039b \ framework \ db \ CDbCommand. php on line 496
Does YII have other fast update methods?
Thank you!
------ Solution --------------------
Set_time_limit (0) is not limited
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.