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

Thread: Indexing Urgent

  1. #1
    Join Date
    May 2001
    Location
    Dallas, US
    Posts
    78

    Exclamation

    Hai,
    Anyone can let me know about the sequence of indexing

    For example 10 columns in my table of which 4 columns are indexed...
    Col1,....Col10

    Indexed columns are Col1, Col2, Col3, and Col4

    Which should be the order in my where clause....which combination is more advisable in performance tuning..

    write back to

    Palani Kumar.R

    [email protected]

    RP Kumar
    You Can Win, if u believe Yourself

  2. #2
    Join Date
    Oct 2000
    Location
    Germany
    Posts
    1,185
    In general, you should structure your where clauses to use the indexes. Then you should structure them so that the greatest amount of screening is done first.

    Best of all, you should use EXPLAIN PLAN and determine the optimal structuring that way.

    Good luck.
    David Knight
    OCP DBA 8i, 9i, 10g

  3. #3
    Join Date
    May 2001
    Location
    Dallas, US
    Posts
    78

    Exclamation Indexing...

    Hai Dave,
    Thanx for your reply..

    I tried for Explain Plan also... I am not able to find out which sequence of indexing is advisable for performance tuning concern...


    So, I want to know about which sequence of indexing will be helpful in Where clauses.... that is we have to start from greatest result screening or smallest screening....


    RP Kumar
    You Can Win, if u believe Yourself

  4. #4
    Join Date
    Oct 2000
    Location
    Germany
    Posts
    1,185
    There is a tool or a setting that does this, but I cannot remember. It might be the rule based optimizer. You can check the DBA forum.

    The basic idea is that you want to get rid of as much data as soon as possible. I think you know this, so pardon this wordy example.

    You want to locate males in a certain city. The city data is distributed across 20 cities with the largest city having 15% of the sample. The sex data is distributed across male and female equally. In this case, you could screen on sex and get rid of 50% of the data where as city may only screen 15%.

    The conclusion is that you need to know your data!

    Good luck.

    David Knight
    OCP DBA 8i, 9i, 10g

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