What if I post an adult title?

Source: Internet
Author: User

I am posting an adult article. Will it be deleted?


Problem Source

A small partner adds transaction commit to the method level. In addition, there are several operations to update the database table in the method. However, when the first few data items pass successfully, the last operation fails. According to General transaction management rules, transaction rollback should be triggered at the moment. However, it was not triggered. The first two operations were successfully written to the database, and the last operation ended.

Problem tracking

The project generally uses the MySQL database, and the management transaction is completed in spring. In fact, it has nothing to do with the development language. No matter what language or framework is used, such problems may occur. The following steps are analyzed respectively:

  1. Check the source code and find no logical error

  2. Compared with other methods, the service is abnormal.

  3. So far, you have to doubt the database.

    1. There is no exception in viewing database configurations, including InnoDB and UTF-8 encoding.

    2. The engine used in the error table is MyISAM, which is different from other tables.

Conclusion

MySQL provides two engines, InnoDB and MyISAM. You can see the differences between the two engines:

  • InnoDB supports transactions which is not supported by tables which use MyISAM storage engine.

  • InnoDB has row-level locking, Relational integrity I. e. Supports Foreign keys, which is not possible in MyISAM.

  • InnoDB's performance for high volume data cannot be beaten by any other storage engines available.

In addition, there is an analysis comparison and selection of the appropriate engine:

                                             My ISAM    InnoDBRequired full text Search                      Yes       5.6+Require Transactions                                     Yesfrequent select queries                        Yes      frequent insert,update,delete                            YesRow Locking (multi processing on single table)           YesRelational base design                                   Yes


What if I post an adult title?

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.