DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: SQL Tuning question

  1. #1
    Join Date
    Sep 2002
    Posts
    376

    SQL Tuning question

    hi,
    Using inbuilt functions on a column in a query like (NVL,TO_CHAR....etc).... does it impact the performance of the query.

    I think using these kind of functions result in FTS even though u have a indexes on those columns. Is it advisable to have fuction indexes ????

  2. #2
    Join Date
    Dec 2002
    Location
    Bangalore ( India )
    Posts
    2,434

    Re: SQL Tuning question

    Originally posted by bang_dba
    hi,
    Is it advisable to have fuction indexes ????
    Depends, whether the Cols are always assosicated with such Fn in where clause, then yes.

    Abhay.
    funky...

    "I Dont Want To Follow A Path, I would Rather Go Where There Is No Path And Leave A Trail."

    "Ego is the worst thing many have, try to overcome it & you will be the best, if not good, person on this earth"

  3. #3
    Join Date
    Nov 2002
    Location
    Geneva Switzerland
    Posts
    3,142
    That's right:
    e.g. WHERE TO_CHAR(primary_key) = . . .
    can not use the index on primary_key.

  4. #4
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    ... and one side-effect of using function-based indexes can be that they break the DBMS_STATS.GATHER_TABLE_STATS() procedure due to this bug. Check whether this would be an issue for you before considering them.
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width