On 12/05/12 18:41, Sarven Capadisli wrote:
Hi TDBsters,

I was just getting back to playing around with tdbstats to optimize some
query responses [1]. At first I couldn't get any counts, but then
discovered that "tdbstats only looks in the default graph (currently)"
[2]. So, I went on to pass one of the graph IRIs, lo and behold, I got
some stats for that graph.

What I'm wondering is, how can I create stats for all of the graphs in
the store and possibly have them represented in stats.opt? Creating
stats for each graph and then merging them (with proper counts) into a
single stats.opt seems cumbersome and possibly incorrect. After all, I
want to be able to query the store in a way that the generated
statistics reflects the store in the most accurate way possible.

Also.. what is the location of rule file where we write the Statistics
Rule Language? I can't see how that supposed to go into stats.opt
because then how would we obtain the counts for the triple patterns?

Thanks!

[1] http://jena.apache.org/documentation/tdb/optimizer.html
[2] http://tech.groups.yahoo.com/group/jena-dev/message/44946

-Sarven

Sarven,

There isn't a way to capture proper stats across named graphs currently. The stats are applied to every graph, so it's not sensitive to which graph (named or default).

The stats.opt file is the rules file.  Be careful not to overwrite :-(

        Andy

Reply via email to