Ask the Expert

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?

    Requires Free Membership to View

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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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: