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 > Indexing problems

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-28-05, 07:35
Tank Tank is offline
Registered User
 
Join Date: Feb 2004
Location: Copenhagen
Posts: 220
Question Indexing problems

Hi All DB2 8.1 FP 5 (.0.48) on AIX 5.2.0.0

After upgrading to 8.1.5 all my indexes seem
to have chanced the indexed column to the
include parameter and the optimizer rarely
select the index - has anyone experienced
anything similar ?

Thanks
__________________
Kristian K. Hansen
Project Supervisor
National Board of Health
Reply With Quote
  #2 (permalink)  
Old 01-28-05, 12:06
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Have you done RUNSTATS follwed by rebind??

Cheers
Sathyaram

Quote:
Originally Posted by Tank
Hi All DB2 8.1 FP 5 (.0.48) on AIX 5.2.0.0

After upgrading to 8.1.5 all my indexes seem
to have chanced the indexed column to the
include parameter and the optimizer rarely
select the index - has anyone experienced
anything similar ?

Thanks
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 01-28-05, 22:25
mike.abel mike.abel is offline
Registered User
 
Join Date: Apr 2002
Location: Chicago
Posts: 10
Do RUNSTATS and then do an EXPLAIN of your query - I suspect it will choose a new access path once the statistics are updated. If you see a better access path will be taken, rebind the program.
Reply With Quote
  #4 (permalink)  
Old 02-01-05, 08:33
Tank Tank is offline
Registered User
 
Join Date: Feb 2004
Location: Copenhagen
Posts: 220
Arrow

I have - of course - runstatted severeal
times and even tried recreating the index
to no avail.

I'll try the rebind - thanks
__________________
Kristian K. Hansen
Project Supervisor
National Board of Health
Reply With Quote
  #5 (permalink)  
Old 02-01-05, 11:29
mike.abel mike.abel is offline
Registered User
 
Join Date: Apr 2002
Location: Chicago
Posts: 10
One other thing to consider is the cardinality and distribution of keys. Even though an index is defined, the optimizer might decide to ignore using an index if it determines the access path is no better than doing a tablespace scan. As always, it depends.
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