Click to See Complete Forum and Search --> : tuning-aspects


beyond
11-22-2005, 12:16 AM
Hi,
i am working on a datawarehouse with following tuning problem:
maybe you know an alternative way: I ve created a partitioned view, i.e. an amount of 700 tables (data are automatically separated by using values of several dimensions, using constraints to enable the costbased optimizer to find the correct table) and a view V_ALL which combines these tables by using "UNION ALL".

if i send a query like this
select * from V_ALL
where dimension1=a and dimension2=b...
the costbased optimizer finds the corresponding table which belongs to this special dimension-combination, but it takes very long. Why?

My aim was, to reduce the amount of data in the result,
because the accessing frontend don t need more data.

i have the feeling, if i would create a programm within the frontend, which chooses the correct table to the corresponding selection-critieria, it would be faster than to give this job to the costbased optimizer...but this i don t want, because this is too hard to authomatize (interface-problem)...

In short words:
i am looking for a good possibility to organize the big amount of data in a way, which makes selections with a long list in the where-clause as performant as possible...
any ideas? and maybe any explanantion, why the costbased optimizer is so poor in getting the correct table within a partitioned view...

slimdave
11-22-2005, 12:56 AM
What's your Oracle version, and what execution plan are you getting?

tamilselvan
11-22-2005, 11:21 AM
In short words:
i am looking for a good possibility to organize the big amount of data in a way, which makes selections with a long list in the where-clause as performant as possible...
any ideas? and maybe any explanantion, why the costbased optimizer is so poor in getting the correct table within a partitioned view...


CBO has not been designed and developed to take care of "TABLE NAME" before computing the cost as you expected.

Partition View is a 20th Century technology when table partition was not available.

Are you still want to use it?

Tamil

slimdave
11-22-2005, 01:38 PM
Partition View is a 20th Century technology when table partition was not available.

I don't think that it's too bad an option. In many cases the execution plan is superior with partition views.

tamilselvan
11-23-2005, 01:42 PM
I don't think that it's too bad an option. In many cases the execution plan is superior with partition views.


Can you give some example?

Tamil

slimdave
11-23-2005, 02:23 PM
Can you give some example?

Tamil

Of course ... I wouldn't have mentioned it if I couldn't :D

http://oraclesponge.blogspot.com/2005/08/more-on-partition-not-quite-pruning.html