In-depth understanding of Oracle indexes (6): a preliminary understanding of the application scenarios of the three major indexes in practice

Source: Internet
Author: User
(I) A table has many duplicate values in a column. The base is very small. What indexes should be created?

-- Create a bitmap index. For details, see the comparison of the lock costs between B-tree indexes and bitmap indexes.
For example:
Create bitmap index idx_bm_product on products (list_price) tablespace users;

(Ii) the value of a column in a table is increasing all the time. It is not a random number. What index should I create?

-- Reverse index, that is, reversed Index
For example:
Create index idx_rev on test (SAL) reverse;

For specific usage, see: in-depth understanding of Oracle indexes (5): definitions, disadvantages, and applicable scenarios of reverse indexes.

(3) A column in a table is placed in the function in normal SQL statements. What should I do to improve the search speed by using indexes?

-- Create a function index
For example:
Create index idx_fun on EMP (upper (name ));
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.