Data Distribution
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.


Data Distribution Expand / Collapse
Author
Message
Posted 5/19/2006 2:14:26 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 7/3/2008 11:03:47 PM
Posts: 41, Visits: 5
Hi,

Suppose we have a 10 AMP system. I have a table with 5 rows. How will the rows be distributed on the 10 AMP system.

Thanks
Angel
Post #4204
Posted 5/19/2006 5:09:31 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Yesterday @ 7:10:35 PM
Posts: 224, Visits: 527
It all depends on how you define the primary index. You can place the rows all on one AMP, or you can distribute them randomly.

If the table will never have more than a few rows, it would make sense to force them to be all on one AMP. In that case you would define the table with a non-unique primary index on a column that is always set to the same value, perhaps like this:

create table tinytable (dummy_pi integer, [other columns] )
primary index (dummy_pi);

create view tinytablev (columns...) as
select columns... from tinytable where dummy_pi = 1;
Post #4208
« 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 5:32am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 7 queries. Compression Disabled.