Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2003
    Posts
    84

    Unanswered: 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 ?

  2. #2
    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

  3. #3
    Join Date
    May 2003
    Location
    USA
    Posts
    5,737
    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

  4. #4
    Join Date
    Aug 2001
    Location
    UK
    Posts
    4,650

    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



    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •