DB2 documents for DB2 / z v10 have the following snippet in the table space section:
Generally, you should have only one table in each table space.
But in reality this does not give any reason for this.
We have several tables storing historical information based on time in the following lines (significantly reduced in complexity, but should be enough to illustrate):
Table HOURLY_CPU_USAGE: RecDate date RecTime time Node char(32) MaxCpuUsage float primary key (RecDate, RecTime, Node) Table DAILY_CPU_USAGE: RecDate date Node char(32) MaxCpuUsage float primary key (RecDate, Node) Table MONTHLY_CPU_USAGE: RecDate date Node char(32) MaxCpuUsage float primary key (RecDate, Node)
(the daily table has all the hourly records collapsed in one day, and the monthly table does the same with the daily data, inserting it into the line with the date YYYY-MM-01 ).
Now it seems to me that these tables are very similar in purpose, and I'm not sure why we want to save them in separate table spaces.
The discount for now is the possibility of combining them into one table, this is an offer I made, but there are complications that prevent this.
What is the point of justifying “one table per tablespace”? What are the exceptions, if any? I suggest that they may be exceptions, as this seems to be a guide rather than a strict rule.
source share