How to improve IMPORT performance in DB2

Source: Internet
Author: User

There are three ways to improve the IMPORT command performance:

[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:

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

Db2 bind db2uimpm. bnd blocking all insert buf

Db2uimpm. bnd is in the. sqllib \ bnd 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.

  1. How to Improve Insert performance in DB2
  2. DB2 database performance optimization tips
  3. Several knowledge points that DB2 must understand

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.