jena-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Claude Moissinac <jcmoissi...@gmail.com>
Subject Fwd: Equivalent query and performances
Date Thu, 07 Mar 2019 16:55:52 GMT
Hello

I'm using jena-fuseki 3.6.0
I've tried two queries which, for me seems equivalent:
select  (count(distinct ?s) as ?c)
from <http://givingsense.eu/datamusee/onto/contextgraph18022019>
where {
    ?s a ?t;
       a <http://dbpedia.org/ontology/Painter>
}
and
select  (count(distinct ?s) as ?c)
where {
    graph <http://givingsense.eu/datamusee/onto/contextgraph18022019> {
     ?s a ?t;
       a <http://dbpedia.org/ontology/Painter>
  }
}

The second is much muck quickest than the first; for example, 42712 ms for
the first one and 524 ms for the second
It's a penalty because I would like sometimes to use several graphs and the
from version seems to be the good way.

Any advices or comments?
--
Jean-Claude Moissinac

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message