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 > Please acknowledge/reject my assumption

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-26-09, 02:53
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Please acknowledge/reject my assumption

When I study the index-advices coming from db2advis it always recommend the "COLLECT SAMPLED DETAILED STATISTICS" syntax during the "CREATE INDEX". So I google to try to understand what that phrase does.
Inferieur to Einstein as I am, I'm not sure I fully understand so I assume:

"this option helps you when you have a problem in your housekeeping-window (runstats taking too long). As long as you do NOT suffer that problem, you do not need that"

Did I understand or am I off target?
Reply With Quote
  #2 (permalink)  
Old 02-26-09, 08:00
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
When an index is created, DB2 will need statistics generated for the index to ensure that the index will be used. Using sampled stats is better than no stats at all, and since obtaining sampled stats is usually quicker (especially for large tables) that is what is produced by the adviser. And the reason is because, as you guessed, most maintenance windows are small.

Andy
Reply With Quote
  #3 (permalink)  
Old 02-26-09, 11:47
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
Yeah, maintenance windows are small, but I run a runstats script once every 24 hours early in the morning during up-time without problems. That should be sufficient and I do not change my "create index" syntax.
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