primary index hash value
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


primary index hash value Expand / Collapse
Author
Message
Posted 6/4/2009 5:56:14 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/8/2009 6:02:57 AM
Posts: 8, Visits: 15
if 123 is a value of an unique primary index column of a particular table A,it will generate a particular hash value via hashing algorithm...now suppose a second Table B also has 123 in its unique primary index column......this will also generate the same hash value and will be there in the same AMP.in this case how the AMP will know that which row corresponds to which table.

Thanks
Sreehari


sreehari
Post #15653
Posted 6/4/2009 9:56:43 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: 10/29/2009 2:48:53 AM
Posts: 94, Visits: 321
Kind of wizard, but this is the thing which makes Teradata data distribution so optimal...
123 Value will be on same AMP but in different data block(mostly different cylinder also)...
Same AMP thing will make it useful for join purpose i.e when these 2 tables will be joined on this column no data is needed to be redistributed as both are on same AMP.....can be processed locally...

Whenever a new row is inserted a 3 part message is generated Table ID+row hash+PI value...
so a row will definitely go to his companion only, by using Table ID....
For more you can Teradata manuals -Physical Implementation.......

Regards,
Prakhar
Post #15655
Posted 6/8/2009 4:36:42 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/8/2009 6:02:57 AM
Posts: 8, Visits: 15
Hi Thanks for the info.........
my understanding till now was that....all rows in an AMP will be identified by 32bit hash value+32 bit uniqueness vaue.....


sreehari
Post #15700
Posted 6/8/2009 11:14:26 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Yesterday @ 5:53:02 PM
Posts: 282, Visits: 971
Your understanding is still correct for non-PPI tables. With PPI, the row identifier is effectively extended by 16 bits to include the partition identifier.
Post #15708
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 4:09pm

Powered By InstantForum.NET v4.1.4 © 2009
Execution: 0.125. 10 queries. Compression Disabled.