Q
Problem solve Get help with specific problems with your technologies, process and projects.

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.

Dig Deeper on Oracle database performance problems and tuning

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.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchHRSoftware

Close