Oracle Performance Optimization Operations 15: Function-based indexes require equality matching

Source: Internet
Author: User

In the previous blog examples, we created a function-based index, but if you execute the following query:

<span style= "FONT-SIZE:18PX;" >select * from EMP where substr (ename,1,1) = ' S ';</span>

The resulting execution plan will still be (TABLE ACCESS full) because the function-based index can only take effect if the data column is able to match the equation.

This requires a high level of planning and maintenance for such indexes. Note that adding an index to a table is a very risky operation because it causes many query execution plan changes.

However, if we use a function-based index, this is not a problem because Oracle uses this type of index only if the query uses a matching built-in function.

Oracle Performance Optimization Operations 15: Function-based indexes require equality matching

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.