-
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.
-
Well, the goal is to try to minimize data being joined, simplify
complex equation, makes life easier
-
-
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.
-
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.
-
I agree, but if he just use it once then just create temporary.
-
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?
-
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"
-
========
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|