DBAsupport.com Forums - Powered by vBulletin
Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: index rebuilds

  1. #11
    Join Date
    Feb 2003
    Location
    Leeds, UK
    Posts
    367
    Index with first column populated by sequence and the application is such that data is deleted for old generated sequence numbers
    Is it this straight forward? My understanding is that if the deletion criteria meant that after the delete there was loads of totally empty blocks a rebuild isn't necessary. The blocks are empty, are not part of the index structure, and therefore Oracle can and will reuse these blocks. On the otherhand, a "scattered" delete that leaves a load of blocks with very few rows in would be a rebuild candidate. The partially empty blocks caused by the delete are still part of the index but the sequential value means they won't be re-used.

  2. #12
    Join Date
    Dec 2002
    Location
    Bangalore ( India )
    Posts
    2,434
    Originally posted by hacketta1
    Is it this straight forward? My understanding is that if the deletion criteria meant that after the delete there was loads of totally empty blocks a rebuild isn't necessary. The blocks are empty, are not part of the index structure, and therefore Oracle can and will reuse these blocks. On the otherhand, a "scattered" delete that leaves a load of blocks with very few rows in would be a rebuild candidate. The partially empty blocks caused by the delete are still part of the index but the sequential value means they won't be re-used.
    That isnt really straight forward.. I should have still made it clear..

    ** and the deletes are so, not all old generated numbers are deleted and are kept intermittently by other key value.. which would mean that blocks are/may partially filled & will not be a candidate for reuse..


    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. #13
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    In that situation you should be looking at a reverse-key index anyway (to avoid contention on inserts), and the problem would go away.
    David Aldridge,
    "The Oracle Sponge"

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

    Oracle ACE

  4. #14
    Join Date
    Sep 2003
    Location
    over the hill and through the woods
    Posts
    995
    Originally posted by abhaysk
    [B]OracleDoc,

    If my memory is good, then i think you had in your systems to rebuild the indexes every week?...

    You also said that the practice of it was a ** "history" **..
    Who me? Ohhh h3ll no I wouldn't rebuild them every week. I'm a strong advocate of "if it aint broke don't fix it"
    Oracle it's not just a database it's a lifestyle!
    --------------
    BTW....You need to get a girlfriend who's last name isn't .jpg

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