Services-Database-Experience

Source: Internet
Author: User

(1) Minimize the direct operation of the database.

(2) If the data synchronization, when the data volume is too large, by first querying the ID collection, and then through the ID can determine whether the local data exists, if not exist then the save operation exists update operation, this is the case of a table data volume is too large, It is not possible to synchronize all the segments at once.

(3) If it is a multi-table union query, try to return the result set you want with the SQL statement stitching method.

(4) When a field contains some fields such as blob or CLOB, we save the object directly through hibernate, we need to convert the blob to byte[]. Clob to a string as the database field value is saved by Prestatement.

Services-Database-Experience

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.