If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Tablespaces

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-04-05, 03:41
Klp Klp is offline
Registered User
 
Join Date: Dec 2004
Posts: 10
Tablespaces

Hi, I have a database with about 50 tables.
If I now wanna create some tablespaces for these tables, lets say 10 tables in each tablespace, that would be 5 tablespaces :-)

My question is now, could there be some problems when having tables with relations in different tablespaces, perfomance etc..

I have also heard that is is a good idea to create different tablespaces for the data and for the indexes.. it that a good idea ? That would then be 10 tablespaces.

Regards

Kris
Reply With Quote
  #2 (permalink)  
Old 11-04-05, 04:03
juliane26 juliane26 is offline
Registered User
 
Join Date: Oct 2005
Posts: 109
this very much depends upon the size of your tables, what kind of system you have.
when you want to seperate indexes and data you have to use DMS tablespaces, which some find tiresom.
If you are new to DB2, go ahead with SMS instead, keep your life simple.
Choose the right extend size (a multiple of your stripe size), that can be important for I/O performance depending on your hardware

Still, it can be a good idea to give large tables their own tablespace, then you don't have to worry about load operations affecting access for other tables in the same tablespace.
(not sure about version 8, there have been some improvements here)

It does not matter for RI in which tablespaces your tables are.
__________________
Juliane
Reply With Quote
  #3 (permalink)  
Old 11-04-05, 10:12
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
One of the main reasons for putting objects in different tablespaces is that tablespaces are assigned to specific bufferpools. If you only have one bufferpool, or your tables and indexes are in the same bufferpool, then they can be in the same tablespace.

The other reason is to reduce disk contention on simultaneous access of mutliple objects. However, if you have a SAN or NAS disk subsystem, and/or you have a reasonable amount of bufferpool memory, then this is not very important. If may be somewhat more important if you have a large data warehouse application with a lot of table scans.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On