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 > Performance of Tablespaces

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-23-04, 14:37
oliva oliva is offline
Registered User
 
Join Date: Feb 2004
Posts: 1
Performance of Tablespaces

Hi.
I want to know what is better ..To have one tablespace with many tables or for each table one tablespace.... I would like to know which is the performance of the distribution of tablespaces in DB2 . I use DB2 7.1
in AIX..

Now i have almost 140 Tables distributed in 53 Tablespaces..
And i have a tablespace only for indexes is this correct? for the performance of de database..

Thank you very much...
Reply With Quote
  #2 (permalink)  
Old 02-23-04, 14:57
Marcus_A Marcus_A is online now
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,197
That depends on many factors, including how much buffer pool memory is allocated, for example. If there is lots of buffer pool space allocated, there is not much synchronous physical I/O going on.

In theory it does help to have indexes on a seperate disk drive or disk array than the tables, so having different tablespaces for them makes that possible if you set it up that way.

You do not need to have each table in it's own tablespace. However, tablespaces have their own page size, bufferpool, extents, and prefetch size, which could differ among the tables you have.

Backup and recovery of related objects at the tablespace level is also a consideration.
__________________
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
  #3 (permalink)  
Old 02-23-04, 15:50
Ben Mansouri Ben Mansouri is offline
Registered User
 
Join Date: Feb 2004
Location: Los Angeles
Posts: 14
In general conditions :
If there is enough buffer pool , I rather to have 1 table space for the tables and 1 table space for my indexes. In this case you will have less hassle for administration and ...
However it depends to your application, sometimes it is better to have your indexes in 2 different table spaces because you want to synch 2 or more different hard disk to return your results back .
Reply With Quote
  #4 (permalink)  
Old 02-24-04, 11:35
Vannaman Vannaman is offline
Registered User
 
Join Date: Feb 2004
Posts: 4
I've found that tables that have a high insert/delete rate are best served in their own TS. We did this for a customer and got a pretty good TPS improvement.

Every environment/application is different and after following basic guidelines, you'll have to start pursuing your 'gut' feelings.
Reply With Quote
  #5 (permalink)  
Old 02-24-04, 15:02
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
If you are using LOAD Utility, you may want to put those tables into their own tablespace ...

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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