You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Benson Margulies <bi...@gmail.com> on 2010/12/27 21:02:57 UTC

Why does TDB love to tell me that I don't have an optimizer ...

Via log4j ...

2010-12-27 14:57:10,251 com.hp.hpl.jena.arq.exec  - No BGP optimizer

Re: Why does TDB love to tell me that I don't have an optimizer ...

Posted by Benson Margulies <bi...@gmail.com>.
I'm happy to touch fixed.opt. What are my other choices :-)

On Mon, Dec 27, 2010 at 3:12 PM, Andy Seaborne
<an...@epimorphics.com> wrote:
> ... because not having one can have huge performance implications.
>
> On 27/12/10 20:02, Benson Margulies wrote:
>>
>> Via log4j ...
>>
>> 2010-12-27 14:57:10,251 com.hp.hpl.jena.arq.exec  - No BGP optimizer
>
> http://openjena.org/wiki/TDB/Optimizer
>
> Either add an optimizer file (e.g. a quick way is "touch
> <DBdirectory>/fixed.opt") or turn it off in your log4j configuration.
>
> "fixed.opt" is better than nothing.
>
>
> Log4j:
>
> # Execution logging
> log4j.logger.com.hp.hpl.jena.arq.info=WARN
> log4j.logger.com.hp.hpl.jena.arq.exec=WARN
>
>        Andy
>

Re: Why does TDB love to tell me that I don't have an optimizer ...

Posted by Benson Margulies <bi...@gmail.com>.
Indeed there is an absolute absence of tuples in my default graph.

On Tue, Dec 28, 2010 at 1:02 PM, Andy Seaborne
<an...@epimorphics.com> wrote:
>
>
> On 27/12/10 21:58, Benson Margulies wrote:
>>
>> I looked into the stats option, too, but tdbconfig didn't have much to say
>> ...
>>
>> /Users/benson/data tdbconfig stats --loc=10k.tdb
>> (stats
>>   (meta
>>     (timestamp
>> "2010-12-27T16:57:02.884-05:00"^^<http://www.w3.org/2001/XMLSchema#dateTime>)
>>     (run@ "2010/12/27 16:57:02 EST")
>>     (count 0))
>>   (other 0))
>
> tdbstats (or tdbconfig stats) currently looks in the default graph of the
> database unless you tel it otherwise.
>
> Yours appears to have zero triples.
>
> Try
>
> tdbstats --loc=10k.tdb --graph=http://example/YourGraph
>
> It should look in the whole DB, but that isn't done yet.
>
> You can write the stats file by hand.
>
> Slightly depressingly, the fixed.opt often does as well stats despite being
> a data independent algorithm, for small to medium sized databases.
>
>        Andy
>

Re: Why does TDB love to tell me that I don't have an optimizer ...

Posted by Andy Seaborne <an...@epimorphics.com>.

On 27/12/10 21:58, Benson Margulies wrote:
> I looked into the stats option, too, but tdbconfig didn't have much to say ...
>
> /Users/benson/data tdbconfig stats --loc=10k.tdb
> (stats
>    (meta
>      (timestamp "2010-12-27T16:57:02.884-05:00"^^<http://www.w3.org/2001/XMLSchema#dateTime>)
>      (run@ "2010/12/27 16:57:02 EST")
>      (count 0))
>    (other 0))

tdbstats (or tdbconfig stats) currently looks in the default graph of 
the database unless you tel it otherwise.

Yours appears to have zero triples.

Try

tdbstats --loc=10k.tdb --graph=http://example/YourGraph

It should look in the whole DB, but that isn't done yet.

You can write the stats file by hand.

Slightly depressingly, the fixed.opt often does as well stats despite 
being a data independent algorithm, for small to medium sized databases.

	Andy

Re: Why does TDB love to tell me that I don't have an optimizer ...

Posted by Benson Margulies <bi...@gmail.com>.
I looked into the stats option, too, but tdbconfig didn't have much to say ...

/Users/benson/data tdbconfig stats --loc=10k.tdb
(stats
  (meta
    (timestamp "2010-12-27T16:57:02.884-05:00"^^<http://www.w3.org/2001/XMLSchema#dateTime>)
    (run@ "2010/12/27 16:57:02 EST")
    (count 0))
  (other 0))




On Mon, Dec 27, 2010 at 3:12 PM, Andy Seaborne
<an...@epimorphics.com> wrote:
> ... because not having one can have huge performance implications.
>
> On 27/12/10 20:02, Benson Margulies wrote:
>>
>> Via log4j ...
>>
>> 2010-12-27 14:57:10,251 com.hp.hpl.jena.arq.exec  - No BGP optimizer
>
> http://openjena.org/wiki/TDB/Optimizer
>
> Either add an optimizer file (e.g. a quick way is "touch
> <DBdirectory>/fixed.opt") or turn it off in your log4j configuration.
>
> "fixed.opt" is better than nothing.
>
>
> Log4j:
>
> # Execution logging
> log4j.logger.com.hp.hpl.jena.arq.info=WARN
> log4j.logger.com.hp.hpl.jena.arq.exec=WARN
>
>        Andy
>

Re: Why does TDB love to tell me that I don't have an optimizer ...

Posted by Andy Seaborne <an...@epimorphics.com>.
... because not having one can have huge performance implications.

On 27/12/10 20:02, Benson Margulies wrote:
> Via log4j ...
>
> 2010-12-27 14:57:10,251 com.hp.hpl.jena.arq.exec  - No BGP optimizer

http://openjena.org/wiki/TDB/Optimizer

Either add an optimizer file (e.g. a quick way is "touch 
<DBdirectory>/fixed.opt") or turn it off in your log4j configuration.

"fixed.opt" is better than nothing.


Log4j:

# Execution logging
log4j.logger.com.hp.hpl.jena.arq.info=WARN
log4j.logger.com.hp.hpl.jena.arq.exec=WARN

	Andy