Results 1 to 3 of 3
  1. #1
    Join Date
    May 2002
    Posts
    30

    Unanswered: 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

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    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.

  3. #3
    Join Date
    Aug 2004
    Posts
    138
    or try including set current query optimization 0 in your sql

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •