Do a function, there is a form, the user entered the phone number and the amount submitted to the background through a series of processing, if the processing is successful, will write a record to the database, the record has a field of result if result=100 wrote the SQL Statement Update 3 table 3 states, One problem is that sometimes even if the RESULT=100 subsequent SQL statements do not seem to be executed or updated, this form has many concurrent cases submitted by the user, the feeling is not in the concurrency, please ask everyone may be what reason
Reply to discussion (solution)
Obviously, you didn't fix the fault tolerance mechanism.
You should check for errors after all possible failed operations and determine the direction of the program
If the number of concurrent numbers is too high, consider using the transaction
Use the transaction, so that every step can be successfully executed. If one step is unsuccessful, roll back.
Thank you for your enthusiastic answer, but all of the table types are MyISAM and do not support transactions, but if you change the table type, some searches are very slow, causing the query data to time out
Yes, using a transaction slows down the query and unnecessarily does not use the
Whether or not to use a transaction, it is always necessary to make a mistake
Thank you for your enthusiastic reply.