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 > Index on different tablespace

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-21-04, 04:55
Dipanjan Dipanjan is offline
Registered User
 
Join Date: Sep 2003
Posts: 84
Index on different tablespace

Is there any performance benefit in UDB on Unix if we keep the indexes on a different tablespace ? For, the indexes on the primary key we do not explicitly create the indexes so how can we put these into a separate tablespace ?
Reply With Quote
  #2 (permalink)  
Old 04-21-04, 05:20
nitingm nitingm is offline
Registered User
 
Join Date: Jul 2003
Location: Austin, TX, USA
Posts: 278
Yes

Hi Dipanjan,

It is a good recommended practise to seperate indexes if you are using DMS tablespaces because that improves the performance as well as you are keeping different entities seperate from the start.

When defining the table if you specify index in <tablespace name> that will ensure that the indexes go into the different tablespace so even the pk index will go there.

Hope I am right
__________________
HTH

Nitin

Ask the experienced rather than the learned
Reply With Quote
  #3 (permalink)  
Old 04-21-04, 05:39
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
If you place the indexes in a different tablespace from the data, this allows you to place the tablespaces on different physical disk drives, or different striped arrays. It also gives the opportunity (if desired) to use different bufferpools for the data and indexes.

Whether or not these things improve performance, and by how much, depends on many factors about the nature of the application and the size of the bufferpools.
__________________
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
  #4 (permalink)  
Old 04-21-04, 05:40
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: Yes

The major advantage of keeping indexes separate, preferably on a different physical device is efficient I/O ...

IMHO, you need not put tables and indexes on different tablespaces, if the tables are small and/or not frequently inserted/updated ...

HTH

Sathyaram



Quote:
Originally posted by nitingm
Hi Dipanjan,

It is a good recommended practise to seperate indexes if you are using DMS tablespaces because that improves the performance as well as you are keeping different entities seperate from the start.

When defining the table if you specify index in <tablespace name> that will ensure that the indexes go into the different tablespace so even the pk index will go there.

Hope I am right
__________________
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