MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Table Partition

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
schintala
Beginner


Joined: 18 May 2005
Posts: 108
Topics: 31
Location: USA

PostPosted: Mon Oct 25, 2010 4:32 pm    Post subject: Table Partition Reply with quote

Hi Folks,
We have large table in our database which has more than 50 millions of rows and would like to partiton the table. We don't have any index or data column to set the range partiton. What would be best approach to make this table as partiton table. We are in V8 on z/OS.

One idea is to alter the table to have partition value as one column. Is it feasible? We are still in doubt how to make entries into this column with the exisiting data. Any suggestions would be a great help. Thank you for your time.
Back to top
View user's profile Send private message
CZerfas
Intermediate


Joined: 31 Jan 2003
Posts: 211
Topics: 8

PostPosted: Tue Oct 26, 2010 2:48 am    Post subject: Reply with quote

Well, the question is: What is the data citeria which should be used for building the partitions?

If you have no index on the table (strange, since you cannot garantee uniqueness of the rows), you probably have a timestamp when the row was inserted. This could be used nicely.

If this is not true, just look for a column which values could be divided into the number of partitions you want to create. The best would be something numeric, where the used values are evenly distributed.

regards
Christian
Back to top
View user's profile Send private message
rkinfy
Beginner


Joined: 12 Nov 2010
Posts: 11
Topics: 3

PostPosted: Wed Nov 24, 2010 3:15 am    Post subject: Reply with quote

schintala,

When you do partitioning, the data is physically stored in that order. If you can identify a column based on which you normally search the data in that table, and if that column is not frequently changed, that would be the right column for partitioning. That way it'll increase the performance of the queries which are hitting that table.

If you are just interested in splitting the number of rows in to different partitions, as CZerfas suggested, you can look for some numeric columns and can even do the partitioning based on last digit or last two digits of that column which will distribute the load.

You can always do an alter table to add a partition key in the table but identifying a column which is already present would be easier.
_________________
RK.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group