Collision or Synonym in Teradata



Teradata is consistent with hashing a value. It means that when Teradata hashes the Index value (e.g. ‘teradatatech’) it will come up with a Row Hash. Now if Teradata hashes the same index value (‘teradatatech’) million times it will always come up with the same Row Hash. Teradata always hashes the same value with consistent results.

However, Teradata can hash two very different values and the result can sometimes be the same Row Hash. This is a called a Collision. It is sometimes called a Synonym.


The AMP always double checks the Primary Index Value to insure it is getting the correct row. The AMP double checks because it is afraid if it does not it could get the wrong row because of a Collision!

Teradata searches for a Primary Index value by hashing the Primary Index Value and then using the Row Hash and the Hash Map to point to a specific AMP. The AMP then uses using a Binary Search of the Row Hash to find the row it is looking for.


For e.g. we have the name ‘teradatatech’ and ‘teradata’ and that they both have the same Row Hash of 11000. This is a collision.


This is why the AMP double checks. It finds ‘teradatatech’ with a binary search on 11000, but checks the value for integrity.

↓↓↓↓↓↓↓↓ SHARE IT WITH YOUR FRIENDS  ↓↓↓↓↓↓↓↓

8 comments

Skip to comment form

  1. Solid analysis of preflop ranges is key to tournament success! Seeing platforms like ph crown game adapt to local payment options (GCash, Maya) is smart – accessibility matters for volume! Definitely boosts player engagement.

  2. What’s up, people? Been messing around on 33bet8 lately. The site’s easy to use, and they’ve got some cool promotions running. Definitely a good spot to check out if you’re looking for some action. More info on 33bet8!

  3. Came across 3rrrgame and it looked intriguing. Gonna give ’em a peek. Maybe I’ll get hooked here! Wanna join me? Find the URL here: 3rrrgame

  4. Man, been using w88bogata for a while now. I can say they are great and reliable. Give it a try. Don’t forget to get bonus! 😎

    • shashi on November 26, 2013 at 6:15 pm
    • Reply

    Hi Admin,

    even after double check how will PE know which row to fetch in case of collision as row hash value will be same. will it be based on the uniqueness value?

    Thanks
    Shashi

      • Rohit on May 5, 2016 at 11:45 am
      • Reply

      Hi Shashi,

      Teradata will check both row hash value and data itself (‘teradatatech’ in this case)
      so even if row hash values are same teradata will distinguish it based on value (data) of primary index.

      hope it helps !!

      Cheers
      Rohit

    • Kumar on April 3, 2013 at 11:27 am
    • Reply

    Hi Admin,
    You have mentioned the below given line in the above post:

    However, Teradata can hash two very different values and the result can sometimes be the same Row Hash. This is called a Collision. It is sometimes called a Synonym.

    — For what reason or in which situation there can be same row hash for two very different values?

    • Teradata Guide on March 30, 2012 at 12:01 pm
    • Reply

    Nice explanation.Thank you

Leave a Reply to 33bet8 Cancel reply

Your email address will not be published.

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