Partition Primary Index – Advantage and Disadvantage


Advantage of Partition Primary Index –

    • Partitioned Primary Index is one of the unique features of Teradata, which is used for distribution of rows based on different partitions so that they can be retrieved much faster than any other conventional approach.
    • Maximum partitions allowed by Teradata – 65,535


  • It also reduces the overhead of scanning the complete table (or FTS) thus improving performance.
  • In PPI tables row is hashed normally on the basis of its PI, but actual storage of row in AMP will take place only in its respective partition. It means rows are sorted first on the basis of there partition column and then inside that partition they are sorted by there row hash .
  • Usually PPI’s are defined on a table in order to increase query efficiency by avoiding full table scans without the overhead and maintenance costs of secondary indexes.
  • Deletes on the PPI table is much faster.
  • For range based queries we can effectively remove SI and use PPI, thus saving overhead of SI subtable.

Disadvantage of Partition Primary Index –

    • PPI rows are 2 bytes are longer so it will use more PERM space.
    • In case we have defined SI on PPI table then as usual size of SI subtable will also increase by 2 bytes for each referencing rowid


  • A PI access can be degraded if the partition column is not part of the PI. For e.g. if query specifying a PI value but no value for the PPI column must look in each partition for that table, hence loosing the advantage of using PI in where clause.
  • When we are doing joins to non-partitioned tables with the PPI table then that join may be degraded. If one of the tables is partitioned and other one is non-partitioned then sliding window merger join will take place.
  • The PI can’t be defined UNIQUE  when the portioning columns is not the part of PI.

To know more about PPI please go the link below –

Partition Primary Index – Basics


 

46 comments

Skip to comment form

  1. Everyone loves it when folks get together and share thoughts. Great blog, keep it up!

  2. We are a group of volunteers and starting a new scheme in our community. Your site provided us with valuable information to work on. You have done a formidable job and our entire community will be thankful to you.

  3. I’ll right away clutch your rss as I can not to find your e-mail subscription link or newsletter service. Do you’ve any? Please let me recognise so that I may subscribe. Thanks.

    • priscillawheuer on February 9, 2026 at 9:58 am
    • Reply

    Vaping 24 combines high-quality devices and e-liquids with smooth draws, rich aroma, and vibrant taste, providing a satisfying, convenient, and enjoyable vaping experience every day.

  4. You made some good points there. I looked on the web for additional information about the issue and found most people will go along with your views on this web site.

  5. I’ll immediately clutch your rss as I can’t in finding your email subscription hyperlink or newsletter service. Do you’ve any? Kindly let me recognise in order that I may subscribe. Thanks.

  6. I found the information layout very user‑friendly, which made exploring the product surprisingly comfortable. The overview of side effects of cialis was presented in a calm, neutral tone that helped me feel well‑oriented. Everything came together nicely and left me satisfied with the clarity and transparency.

  7. My knowledge on St. Patrick’s Day is NIL and therefore i did not participate on this week’s Hubmob but it normally good to study.

  8. I am sure this article has touched all the internet users, its really really fastidious paragraph on building up new weblog.

  9. I am sure this article has touched all the internet viewers, its really really fastidious article on building up new web site.

  10. Incredible! This blog looks just like my old one! It’s on a totally different topic but it has pretty much the same layout and design. Great choice of colors!

  11. It’s very simple to find out any matter on net as compared to books, as I found this post at this site.

  12. Everything is very open with a precise description of the issues. It was truly informative. Your website is extremely helpful. Thanks for sharing!

    • Brock2284 on December 31, 2025 at 8:32 pm
    • Reply

    https://shorturl.fm/0tTOJ

  13. Ahaa, its nice dialogue concerning this paragraph at this place at this weblog, I have read all that, so now me also commenting at this place.

  14. Multi Bet seems like a solid choice for combo bets. I’ll check it out, maybe I will increase my payout with the risk. Let’s win big! multi bet

    • Robin1316 on December 24, 2025 at 6:38 am
    • Reply

    https://shorturl.fm/17Huy

  15. Spinplusph is my go-to for a quick spin or two. They got a bunch of different games to try. Solid payouts sometimes too! Vibe check this: spinplusph

    • Renee3218 on December 7, 2025 at 6:46 pm
    • Reply

    https://shorturl.fm/FOoDo

  16. Just signed up for ph444vip and getting lots of bonuses. Their VIP program is something else. So many daily/ weekly bonuses to claim. Visit official website here: ph444vip

    • Don980 on December 2, 2025 at 2:47 am
    • Reply

    https://shorturl.fm/JLSac

    • Kara3493 on November 30, 2025 at 11:07 am
    • Reply

    https://shorturl.fm/IbViC

    • Dustin1896 on November 27, 2025 at 3:33 am
    • Reply

    https://shorturl.fm/utIcL

    • Mason4417 on November 23, 2025 at 11:38 am
    • Reply

    https://shorturl.fm/J0X0Q

    • Matthew2527 on November 23, 2025 at 4:59 am
    • Reply

    https://shorturl.fm/gt3BM

    • Paula1647 on November 16, 2025 at 12:12 pm
    • Reply

    https://shorturl.fm/vQq4B

    • Haley3049 on November 13, 2025 at 5:59 am
    • Reply

    https://shorturl.fm/RrqMq

    • Eric1368 on November 10, 2025 at 8:21 am
    • Reply

    https://shorturl.fm/RIiFC

    • Clementine158 on November 8, 2025 at 1:46 pm
    • Reply

    https://shorturl.fm/pwPAK

    • Wayne1881 on November 8, 2025 at 11:20 am
    • Reply

    https://shorturl.fm/dwNlI

    • Freddie3202 on November 8, 2025 at 1:53 am
    • Reply

    https://shorturl.fm/Um5TX

    • Jayden1560 on November 7, 2025 at 8:59 pm
    • Reply

    https://shorturl.fm/eOjMH

    • Jason2901 on November 6, 2025 at 8:49 pm
    • Reply

    https://shorturl.fm/hNAJ3

    • Channing890 on November 4, 2025 at 8:11 pm
    • Reply

    https://shorturl.fm/Vz4OX

    • Brielle3648 on November 3, 2025 at 11:12 am
    • Reply

    https://shorturl.fm/nS3dv

    • Emory1669 on November 2, 2025 at 3:19 pm
    • Reply

    https://shorturl.fm/mnpny

    • Maliyah3059 on November 1, 2025 at 7:49 am
    • Reply

    https://shorturl.fm/EoSRI

    • srikanth Kowtha on January 4, 2016 at 5:25 pm
    • Reply

    Hi Admin,

    Can you please explain how actually the the sort works for table’s having PPI for below case .

    when there is already data in table and you do an insert to the table.

    Happy learning

    • Ramana on June 12, 2015 at 9:22 am
    • Reply

    Can we create PPI even after the table is populated with records? or only at the time of table creation?

      • anurag on December 19, 2017 at 8:12 pm
      • Reply

      only at the time of table creation..because row are distribute base on pi and create rowid then we mention partion means again row are automatically arrenge with user define partion..hope you will understand.

    • prasanna on July 15, 2013 at 1:26 pm
    • Reply

    Hi Admin,

    Can u explain what are the advantages of teradata over oracle.

    for waht purpose we can use teradta instead of oracle ?

    why teradata was developed ?

    canu expalin PPi indexes with examples

    • NR on July 11, 2013 at 5:32 am
    • Reply

    [ if query specifying a PI value but no value for the PPI column must look in each partition for that table, hence loosing the advantage of using PI in where clause. ] ==> Could you please explain this by example ?

    • Amarnath on April 21, 2013 at 3:49 am
    • Reply

    Hi Admin,

    Can you explain “Sliding window merger join”?

    • Sonia on April 10, 2013 at 5:06 pm
    • Reply

    I have one doubt PPI by range can be done on date only on what other columns PPI by range can be done?
    Can you explain PPI by case with one example?

Leave a Reply to Jason2901 Cancel reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.