DBAsupport.com Forums - Powered by vBulletin
Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: SQL Tuning

  1. #11
    Join Date
    Sep 2001
    Location
    Makati, Philippines
    Posts
    857
    Originally posted by reydp
    That's exactly what I'm trying to say dear.

    But what about function-based Index? I am sure it will help the performance too.
    Sorry, I don't agree totally on creating temporary tables.
    Depends on the size of data.

  2. #12
    Join Date
    Aug 2000
    Location
    Jolo, Sulu
    Posts
    639
    Well, the goal is to try to minimize data being joined, simplify
    complex equation, makes life easier

  3. #13
    Join Date
    Sep 2001
    Location
    Makati, Philippines
    Posts
    857
    Originally posted by kris123
    Well, the goal is to try to minimize data being joined, simplify
    complex equation, makes life easier
    I don't know if you're serious or what.
    Please don't tell me that every set of data that the user wants you have to create data segments because you want to minimize fields being joined between tables.

    Are we done here Mama Kris?

  4. #14
    Join Date
    Aug 2000
    Location
    Jolo, Sulu
    Posts
    639
    Why not? if u can produce output?U see he said is program is timing out wasting resources/processing time
    Its not the fields but the data/rows, maybe the tables is filled with
    lots of historical data that can be filter.

    Ms C3

    PS papa deydp, can u answer my post thread pls...the numeric
    procedure error
    Last edited by kris123; 04-29-2005 at 01:48 AM.

  5. #15
    Join Date
    Sep 2001
    Location
    Makati, Philippines
    Posts
    857
    Originally posted by kris123
    Why not? if u can produce output?U see he said is program is timing out wasting resources/processing time
    Its not the fields but the data/rows, maybe the tables is filled with
    lots of historical data that can be filter.

    Ms C3

    PS papa deydp, can u answer my post thread pls...the numeric
    procedure error
    dear, the way I look at it maybe he/she needs a materialized views rather than temporary tables.

  6. #16
    Join Date
    Aug 2000
    Location
    Jolo, Sulu
    Posts
    639
    I agree, but if he just use it once then just create temporary.

  7. #17
    Join Date
    Sep 2001
    Location
    Makati, Philippines
    Posts
    857
    Originally posted by kris123
    I agree, but if he just use it once then just create temporary.
    How did you know that he wil use it only once?

  8. #18
    Join Date
    Dec 2002
    Location
    Bangalore ( India )
    Posts
    2,434
    reydp & kris.. is it some chat session going on here?..


    Well @chintz.. post the plan.. code of the view in readable format..

    Abhay.
    funky...

    "I Dont Want To Follow A Path, I would Rather Go Where There Is No Path And Leave A Trail."

    "Ego is the worst thing many have, try to overcome it & you will be the best, if not good, person on this earth"

  9. #19
    Join Date
    May 2000
    Location
    ATLANTA, GA, USA
    Posts
    3,135
    ========
    SELECT a.operator
    , a.run_id
    , a.f_batch_prefix
    , b.oprid
    FROM batch_vg a
    , oprdefn b
    WHERE b.oprid = a.oprid
    AND substr(a.run_id,1,2)='04';
    =====

    A function on a col will stop using the index.

    Try this:

    SELECT a.operator
    , a.run_id
    , a.f_batch_prefix
    , b.oprid
    FROM batch_vg a
    , oprdefn b
    WHERE b.oprid = a.oprid
    AND a.run_id like '04%';

    If there is a index on run_id, the CBO may use it.
    Let me know the result.

    Tamil

Posting Permissions

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


Click Here to Expand Forum to Full Width