High-concurrency SQL Server Access Solution

Source: Internet
Author: User
Problem: the background system needs to connect to SQL Server, and the instantaneous data operations may be very large, as if tens of thousands of data needs to be inserted into the database, however, when data is inserted, other threads may need to access the database. The priority of data insertion operations is relatively low, and other accesses require immediate return. After a long time, I don't know how to solve this problem, hope you can enlighten me. Answer: 1. improve server hardware configuration 2. use replication and other synchronization technologies to synchronize frequently-operated tables into multiple copies and distribute operations to these synchronized tables. for data queries, try to use the read uncommitted transaction isolation level to reduce the lock overhead ====you can use Snapshot isolation level ==-- when querying, use SET transaction isolation level read uncommitted -- or with (nolock) -- and create an index, minimize time-consuming queries-multiple servers share the pressure-improve hardware performance this is the most cost-consuming but most effective method === select * from TB (nolock) is not locked during Query) use an image copy to add read-only databases! === In addition to the above methods, 2005 can also adopt the row-versiong based snapshot transaction isolation level. Create a snapshot database to isolate queries and updates.

 

Related Article

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.