Improve Oracle index _ MySQL

Source: Internet
Author: User
Improve Oracle indexes when we use create index to CREATE an INDEX, Oracle provides many parameters to improve the INDEX creation speed, the space occupied by the INDEX, and the layers of the INDEX tree.

1. speed factors

PARALLEL option: When creating an index, Oracle will first perform a full table scan to collect the symbol keys and ROWID pairs, while PARALLEL option allows multiple processors to scan tables in PARALLEL, this will accelerate the index creation process. The recommended PARALLEL value is 1 less than the number of CPUs.

NOLOGGING option: Because the NOLOGGING option does not write logs, the performance is greatly improved, saving about 70% of the time compared to the NOLOGGING option. The only risk of using NOLOGGING to create an index is that if the database needs to perform rollback and recovery, you will have to re-create the index.

2. spatial and structural factors

COMPRESS option: the COMPRESS option is used to COMPRESS duplicate values when creating a non-unique index. For connected indexes (that is, the index contains multiple columns), The COMPRESS option will reduce the index size by more than half. The COMPRESS option can also set the prefix length of the connected index.

Using a large BLOCKSIZE tablespace: creating an index on a large BLOCKSIZE tablespace greatly reduces the layers of the index tree.

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.