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

Thread: diff: global index and a local index

  1. #1
    Join Date
    Nov 2001
    Posts
    110

    diff: global index and a local index

    What is the difference between a global index and a local index.

  2. #2
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    well one is global to the table, one is local to a partition

    what else you want to know?

  3. #3
    Join Date
    Nov 2001
    Posts
    110
    So if you have a partitioned table and you have a global index, does that mean that it is one self contained object with values for all the partition? How does the local index differ?
    Thanks.

  4. #4
    Join Date
    Feb 2000
    Location
    Washington DC
    Posts
    1,843
    davey23uk comment self explainatory. Isn't it ? Create one local and other global index and observe the underlying structures you should be able to figure out.

    Local index is @ partition level and indexed based on the partition data only where as global index, indexed on the whole table(all partitions).
    Reddy,Sam

  5. #5
    Join Date
    Jul 2001
    Posts
    59

    confusion about local index and global index

    Hi to all,

    I am in confusion about local index and global index.

    Give some example where the global index is been used and where the local index is been used?

    Mistry Pradip

  6. #6
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    create index zzz on table1(x);

    create index yyy on table1(x)
    LOCAL;

    one is local to the partition, one is global.

    e.g you can rebuild a partitioned index partition by partition - helps when doing a full index scan as you only have to scan the index partition

  7. #7
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092

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