You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by Rob Vesse <rv...@dotnetrdf.org> on 2014/03/12 12:32:03 UTC

Turning on different reordering strategies via command line?

Andy

Is there a way to choose the TDB reordering strategy when using the TDB
command line tools or is it only configurable by placing the relevant .opt
file in the database directory?

Rob



Re: Turning on different reordering strategies via command line?

Posted by Rob Vesse <rv...@dotnetrdf.org>.
I am working on slides for my tutorial and ideal want to give a demo that
shows a query being planned differently depending on the reordering
strategy used.  A simple command line switch would have been the easiest
way.

Likely I'll need to write some simple code to demonstrate the differences
in scheduling instead

Rob

On 12/03/2014 14:39, "Andy Seaborne" <an...@apache.org> wrote:

>On 12/03/14 11:32, Rob Vesse wrote:
>> Andy
>>
>> Is there a way to choose the TDB reordering strategy when using the TDB
>> command line tools or is it only configurable by placing the relevant
>>.opt
>> file in the database directory?
>>
>> Rob
>>
>>
>>
>
>Rob,
>
>Only via an .opt file at the moment.  fixed.opt means it's as the queyr
>is written.
>
>What's more, the new(er) reorder/filter code in ARQ does not work with
>TDB yet (it gets switched off) and the old TDB code applies.  So TDB's
>optimization of FILTER is less general and the order of BGPs if rdf:type
>is involved can (not often) be less than ideal.
>
>Work-in-progress - I don't want to kludge it now then have to redo that
>when a rework TDB execution/optimizer is ready.  Making changes is easy
>enough - testing is time consuming.  The new execution framework is
>mostly (ha!) written and partially tested.
>
>Did you have anything particular in mind?
>
>	Andy
>





Re: Turning on different reordering strategies via command line?

Posted by Andy Seaborne <an...@apache.org>.
On 12/03/14 11:32, Rob Vesse wrote:
> Andy
>
> Is there a way to choose the TDB reordering strategy when using the TDB
> command line tools or is it only configurable by placing the relevant .opt
> file in the database directory?
>
> Rob
>
>
>

Rob,

Only via an .opt file at the moment.  fixed.opt means it's as the queyr 
is written.

What's more, the new(er) reorder/filter code in ARQ does not work with 
TDB yet (it gets switched off) and the old TDB code applies.  So TDB's 
optimization of FILTER is less general and the order of BGPs if rdf:type 
is involved can (not often) be less than ideal.

Work-in-progress - I don't want to kludge it now then have to redo that 
when a rework TDB execution/optimizer is ready.  Making changes is easy 
enough - testing is time consuming.  The new execution framework is 
mostly (ha!) written and partially tested.

Did you have anything particular in mind?

	Andy