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 > Decrease Compile Time

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-25-05, 18:00
soundharya_s soundharya_s is offline
Registered User
 
Join Date: May 2002
Posts: 30
Decrease Compile Time

I have a complex piece of query that compiles for about 7-8 seconds, follwed by 4-5 seconds execution.
How can I decrease the compile time? Are there any configuration parameters?

As this query is run from a tool, it is not possible to decrease the optimization level or to use parameter markers.

Environment : DB2 V8.2 - RH Linux

TIA
Soundh
Reply With Quote
  #2 (permalink)  
Old 02-25-05, 18:56
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
You could try setting DB2_REDUCED_OPTIMIZATION (see documentation for possible values). Obviously, this is going to affect all queries, not just the one you're concerned about.
Reply With Quote
  #3 (permalink)  
Old 02-28-05, 12:46
chavadb2 chavadb2 is offline
Registered User
 
Join Date: Aug 2004
Posts: 138
or try including set current query optimization 0 in your sql
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