On Thu, Dec 3, 2009 at 1:27 PM, Rickard Öberg <[email protected]> wrote:

> The rule I use is: if an = is not used within an "or"-statement, then it's
> ok to inline the value comparison. If there's an "or" going on then I think
> the FILTER still has to be used, to get correct semantics.

Any OR at all, or just those that matter?

I think the optimizations possible are; If you have a Syntax Tree,
then all top level expressions that are ANDed and have a Literal 2nd
operand can be moved outside the FILTER clause.

But perhaps this (whatever "this" is) is good enough for now, as there
are many other important things to deal with.

Cheers
-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to