Q

Performance degrading on indexed column

I have a column rj_date of the date datatype. There is an index on this column. The tochar() function in the index is not working, and the performance is degrading. How can I overcome this problem?

I have a column rj_date of the date datatype. There is an index on this column. The tochar() function in the index is not working, and the performance is degrading. How can I overcome this problem?
If you apply a function to an indexed column, the index cannot be used. Either apply a to_date function to the literal value in your WHERE clause (e.g., WHERE to_date('01/01/2006','MM/DD/YYYY') = rj_date) or create a function_based index on rj_date.
This was first published in January 2006

Dig deeper on Oracle database performance problems and tuning

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close