Handling of long execution time

Dear All,

I have a method to convert data from one table to another table. A table contains raw information data from fingerprint machine into attendance table. The thing is that the amount of data is bit large, 12000 rows. I got an error mentioning that it passed the max execution time limit. Any special handling of this case in yii?



One solution would be to set a longer execution plan… check this similar thread - http://www.yiiframework.com/forum/index.php?/topic/26370-what-does-his-error-mean-and-how-do-i-solve-it/

You’d better run this operation in console, because there is no time limit and also it’s not a good idea to allow to run such long tasks via browser.


andy_s you are right for the console operation… but there is still the time limit applied to it… you still need to set the max_execution_time for the console app…

But what about this? :)

It’s exactly the same thing I wrote above, just with different words :D … there is the directive max_execution_time that should be set for PHP… 0 means unlimited…