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 > Slow Create Index

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-04-04, 16:40
Koz Koz is offline
Registered User
 
Join Date: May 2002
Posts: 43
Slow Create Index

When I drop and recreate a 4Gig index, it is taking forever.

I see low read I/O from the Data Tablespace Disk and low I/O to the Temp Tablespace Disk.

I am running UDB 7.2 on a AIX server.

If the Indexes are smaller then 2 Gig, it flies through... I am guessing there is a tunable parm that I may be able to increase to help...

Any suggestions??????
Reply With Quote
  #2 (permalink)  
Old 12-04-04, 18:05
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Your tablespace for the index should be more than twice the size of the index to allow for sorting during the create index operation.
__________________
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 12-06-04, 16:00
quigleyd quigleyd is offline
Registered User
 
Join Date: Nov 2002
Location: Delaware
Posts: 186
also make sure that your util_heap_sz is large enough, and if you can turn parallelism on, you can really speed it up even more.
__________________
David Quigley
Reply With Quote
  #4 (permalink)  
Old 12-06-04, 17:56
dbamota dbamota is offline
Registered User
 
Join Date: Sep 2003
Posts: 237
SORTHEAP(database config) and indirectly SHEAPTHRES(db mgr config which limits SORTHEAP) have a direct bearing on sorting the indexes; bigger the SORTHEAP, bigger the chains during the SORT, and fewer I/O's to the disk(TEMPSPACE). TEMPSPACe should be on the fastest disk; local rather than a STORAGE system;no raid-5 etc;
__________________
mota
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