db2--Table Append on property

Source: Internet
Author: User

ALTER TABLE tablename APPEND on| OFF

On: The newly added data will be inserted into the page with free space;

OFF: The newly added data is stored on the last page, and if the page is full, the data will be stored on the next page.

The minimum storage space for the data is page, and the page size is 4k,8k,16k,32k.

PS: in DB2, when the table data is deleted, the space is not released, but a delete flag is added to the original data, indicating that the space of the row can be reused, and when you need to insert data into the table, DB2
Scan the free space for the entire table, and then place the new row in the available space.
If you specify the Append on property, then DB2 will no longer search for free space, but instead directly insert the data into the end of the table. This can improve efficiency.
This feature is suitable for those large batch append history tables, after using the Append feature, please note that regular reorg table
ALTER TABLE tab_name append on;

db2--Table Append on property

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.