Maximum execution time of 60 seconds exceeded in C:\wamp\www\filepath\cake\libs\model\datasources\dbo\dbo_mysql.php [closed]

StackOverflow https://stackoverflow.com/questions/23134486

Question

I am having tables with 2000 records (table1); I need to check the duplicates of records from table2 with 100 records on the basis of User Email address and User Phone number.

Application in cakephp 1.3

Table 1 and Table 2 have same structure-

id, First Name, Last Name, Email, Street, Area, Locality, Country, Postal Code, Phone Number, Hobbies.

I imported data in mysql database with php excel reader and data store properly with more than 2000 records in Table 1. After then I check the duplicates. If Table 1 data is matched with Table 2 with columns "email and phone number", then duplicate entry and duplicate flag enabled in Table 1 and record should not store in Table 2; All the process goes fine but after 853 records application stop I also tried with Maximum Execution Time - 120 seconds. then my application stops after matching 1453 records.

Fatal error: Maximum execution time of 60 seconds exceeded in C:\wamp\www\filepath\cake\libs\model\datasources\dbo\dbo_mysql.php on line 213

I am facing this error. Any one knows the best way to resolve this issue?

Était-ce utile?

La solution

Do you have your SQL tables properly indexed by the columns you're checking against? I'm sorry but even with a low powered server 2000 records should be well less than one second ... if you have indexes setup. (I have a small desktop server with 4GB or RAM that checks name, email phone number from 5500 contacts in 300ms, for example)

Post you database creation schema, let's take a look

Autres conseils

You should increase max_execution_time more than 120 in php.ini. That helps me when I got this kind of error.

Hope it helps!

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top