Introduction to three easy-to-use solutions to improve concurrency in IBM DB2

Source: Internet
Author: User
Tags ibm db2

This article mainly tells you how to improve the concurrency in three IBM DB2 statements. The three methods are mainly to improve the concurrency: reduce the isolation level, the read operation will not be blocked because of lock conflicts. It will change the lock time, reduce lock conflicts, and add indexes to the where field to reduce lock occupation.

In DB2, three methods can be used to increase concurrency:

1. Reduce the isolation level, and read operations will not be blocked due to lock conflicts

Select... with UR

2. Change the lock locking time to reduce lock conflicts (so that the insert, update, and delete operations on the row won't lock select operations with different conditions)

 
 
  1. Db2set DB2_EVALUNCOMMITTED = ON
  2. Db2set DB2_SKIPDELETED = ON
  3. Db2set DB2_SKIPINSERTED = ON

3. Add an index to the where field to reduce lock occupation.

Note:

Db2set DB2_EVALUNCOMMITTED = ON-this parameter checks the predicates before record locks to minimize the lock time;

Db2set DB2_SKIPINSERTED = ON-this parameter skips newly inserted data that has not been submitted. For example, this record is not found in the SELECT/UPDATE statement;

Db2set DB2_SKIPDELETED = ON-this parameter skips the newly deleted data that has not been submitted. For example, the SELECT/UPDATE statement does not wait for the submission of this record and considers it to have been deleted. The above content is an introduction to the three methods for improving the concurrency in IBM DB2. I hope you will gain some benefits.

The above content is a description of the three methods for increasing concurrency in IBM DB2, hoping to help you in this regard.

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.