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 > How to Improve SELECT and UPDATE Query Performance

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-02-07, 13:41
venky5436 venky5436 is offline
Registered User
 
Join Date: Jul 2005
Posts: 47
How to Improve SELECT and UPDATE Query Performance

Hi All,

1)Can anyone please suggest the best methods to improve SELECT and UPDATE Query Performance.
The follwoing steps have been taken,
Index Created,Runstats performed and Rebind performed.

2)Query 1 uses a set of Indexes in QA and does not use the same set of Indexes in Prod which is an exact copy of the QA.Is there a way to force the query to use the set of Indexes used in QA which gives better performance.

3)Does creating multiple containers in a single tablespace help improving data access.The tablespaces lie on the same filesystem.

Thanks in Advance,
Venkat
Reply With Quote
  #2 (permalink)  
Old 07-02-07, 14:50
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
2) What's the difference between your test system and the production system? (There are differences - if there were none, DB2 would come up with the same access plan.)

3) How many physical devices are in the file system?
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 07-03-07, 09:46
venky5436 venky5436 is offline
Registered User
 
Join Date: Jul 2005
Posts: 47
Thanks for your reply.

2) What's the difference between your test system and the production system? (There are differences - if there were none, DB2 would come up with the same access plan.)

-- There are no differences between both the systems.I am surprised why
DB2 is coming up with different access plans.

3) How many physical devices are in the file system?
There are 8 physical devices in the filesystem.Does increaing the number of containers in a tablespace help in improving the performance.

Thanks again,
Reply With Quote
  #4 (permalink)  
Old 07-03-07, 14:54
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
2) Sorry if I have to say that, but you do have differences in your system configuration (hardware/software) and/or DB2 configuration and data. The DB2 optimizer works deterministic, so you would get the same results in the same environment and data. You should investigate why you believe that there are no differences, find the differences and figure out if they may result in different access plans. If you can't find any difference, search again...

3) Are those physical devices real physical discs or just partitions on the same disc? If you have multiple discs, it makes sense to have multiple containers on the file system because you can benefit from parallel I/O at the DB2 level (not only at OS level).

That also depends on how your physical volume is organized. For example, if the volume already stripes over physical volumes and you have mostly sequential access, then multiple containers may not give you much advantage because you already have multi-page reads (due to prefetching), and the OS uses parallel I/O.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #5 (permalink)  
Old 07-06-07, 10:54
venky5436 venky5436 is offline
Registered User
 
Join Date: Jul 2005
Posts: 47
Thanks for making it clear about the tablespace containers.I finally found my answer about the multiple containers.
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