| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Functions and Relations
Sampo Syreeni <decoy_at_iki.fi> wrote in
news:Pine.SOL.4.62.0611211353350.4310_at_kruuna.helsinki.fi:
> On 2006-11-21, NENASHI, Tegiri wrote:
>
>> There are relation compositions that are not associative: >> >> 3 -2 - 1: let const3 = 3; m2:x ->x-2; m1:x->x-1; >> >> 'const3 o m2 o m1' is not associative.
It is my stupid error: I did not think straightly: the function composition is always associative and it is the consequence of the definition of the composition only. Please look at my response to 'vc'.
>
>>> SQL optimization. Consider >>> >>> select sal+100 from emp >>> >>> what exactly is "sal+100" and how to show it on the explain plan? >> >> What is the problem?
I understand and I am agree that the optimiser can utilize the same algorithms with the function-like-relation like it utilizes with "normal" relations but I think that the loss of performance thanks to the interpretation of the partially evaluated function can be more that the gain from the optimiser statistics. But the proof will be the experiment of course ;)
One other objection is that the modern optimizer can take count of the function application to tuples. I have seen that MS SQL Server does it. I do not know about Oracle but I can ask our DBA. Received on Tue Nov 21 2006 - 08:32:56 CST
![]() |
![]() |