Which of the following methods can improve the IMPORT command performance of the DB2 database?

Source: Internet
Author: User
Tags db2 connect db2 connect to

This article mainly introduces three basic operations to improve the IMPORT command performance of the DB2 database, if you are interested in the three basic operations to improve the IMPORT command performance of the DB2 database, you can click the following article to view it.

In a partitioned database environment, you can use Buffered insert to improve the IMPORT performance of the DB2 database: Before executing the IMPORT command, bind the BIND file db2uimpm corresponding to the IMPORT command with the insert BUF parameter. bnd.

There are three ways to improve the IMPORT command performance:

Environment

[Product] DB2

[Platform] cross-platform

[Version] 7.x, 8.1

Q: How can I improve the IMPORT command performance?

Answer:

1. In the partitioned database environment, Buffered insert can be used to improve the IMPORT performance of the DB2 database:

Before executing the IMPORT command, bind the BIND file db2uimpm. bnd corresponding to the IMPORT command with the insert BUF parameter.

For example:

Db2 connect to database name

 
 
  1. db2 bind db2uimpm.bnd blocking all insert buf 

Db2uimpm. bnd is in the. sqllibbnd directory.

2. Run the IMPORT command using the COMPOUND parameter:

For example:

Db2 connect to database name

Db2 import from data file name of ixf modified by compound = 100 insert into Table Name

In the preceding command, IMPORT will wait for the returned SQL Execution result after each 100 records instead of each record is inserted.

3. If data already exists in the table, modifying the table attribute to append mode can also speed up the IMPORT performance.

The above content is an introduction to three ways to improve the performance of the DB2 database IMPORT command. I hope you will have some gains.

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.