About avoiding Fuzzy Query index aging problem

Source: Internet
Author: User

When Waybill_no exists index

SELECT *
From Ucmp_waybill_rec_mem R
where R.createtm >= trunc (sysdate-1)
and R.type = ' 2 '
and r.waybill_no like ' 33% '

And

SELECT *
From Ucmp_waybill_rec_mem R
where To_char (R.createtm) > ' 2016-01-29 '
and R.type = ' 2 '
and substr (r.waybill_no,1,3) = ' 033 '

When the data is 100 million, the first 1.5 hours is not yet investigated, the second 4 minutes to resolve,

I know the index will fail, but not the first time to try to avoid, leading to delay time, remember

When the index fails, try to avoid it, and there are ways to avoid

About avoiding Fuzzy Query index aging problem

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.