Re: Value of moving OPTIONAL clauses to the end of a graph pattern?

It probably can't hurt - but note that the relative ordering of the OPTIONAL blocks can alter the semantics of the query (you need to have shared variables though).

I generally try order for best readability, and then complain to the optimiser author if it can't pick a sensible optimisation :)

- Steve

On 2012-12-20, at 21:10, Bob DuCharme wrote:

> Since OPTIONAL clauses have no chance of reducing the search space for their containing graph pattern, does it make sense as a general rule of thumb to put them after all the ones that do, i.e. after the non-OPTIONAL triple patterns?
> 
> thanks,
> 
> Bob
> 
> 

Received on Friday, 21 December 2012 10:15:13 UTC