Multiple tables or single table in one tablespace ?

This is a discussion on Multiple tables or single table in one tablespace ? within the ibm-db2 forums in Other Databases category; Hi , all We have hundreds of tables in on tablespace , but I'm planning to change as one table per one tablespace. . I wonder how other shops does ? Are there any special reasons in UDB keeping multiple tables in one tablesapce ? Regards Myoungsoo Ex M/F DBA...

Go Back   Database Forum > Other Databases > ibm-db2

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-25-2008, 08:40 PM
Default Multiple tables or single table in one tablespace ?

Hi , all
We have hundreds of tables in on tablespace ,
but I'm planning to change as one table per one tablespace. .

I wonder how other shops does ?

Are there any special reasons in UDB
keeping multiple tables in one tablesapce ?


Regards
Myoungsoo

Ex M/F DBA
Reply With Quote
  #2  
Old 08-26-2008, 03:36 AM
Default Re: Multiple tables or single table in one tablespace ?

Hi!

We group tables in tablespace by logical groups. For example, all common
tables (like currency, country, ...) are in one tablespace. If we have
large tables that need to be fast we usually use range partitioning
across multiple tablespaces.

Best regards,
Kovi

mvsmsh pravi:
> Hi , all
> We have hundreds of tables in on tablespace ,
> but I'm planning to change as one table per one tablespace. .
>
> I wonder how other shops does ?
>
> Are there any special reasons in UDB
> keeping multiple tables in one tablesapce ?
>
>
> Regards
> Myoungsoo
>
> Ex M/F DBA


--
____________________________
|http://kovica.blogspot.com|
-----------------------------~-~-~-~-~-~-~-~-~-~-
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Reply With Quote
  #3  
Old 08-26-2008, 08:35 AM
Default Re: Multiple tables or single table in one tablespace ?

mvsmsh wrote:
> Hi , all
> We have hundreds of tables in on tablespace ,
> but I'm planning to change as one table per one tablespace. .
>
> I wonder how other shops does ?
>
> Are there any special reasons in UDB
> keeping multiple tables in one tablesapce ?

With automatic storage the administrative overhead to a tablespace is
minimal. The benefit of a table space however is that it can be restored
individually.
So having each table in a separate tablespace provides essentially table
level backup/restore.
I think there are also some locks that are table space level.
Overall best practices are moving towards one table per tablespace.
If that is becoming pervasive the question: Why does DB2 distinguish
between table spaces and tables to begin with" is quite fair.

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 03:04 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by bbpixel2008 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.