You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2018/06/10 13:22:00 UTC

[jira] [Created] (JENA-1562) TDB2 Graph.size() is much slower than TDB1.

Andy Seaborne created JENA-1562:
-----------------------------------

             Summary: TDB2 Graph.size() is much slower than TDB1.
                 Key: JENA-1562
                 URL: https://issues.apache.org/jira/browse/JENA-1562
             Project: Apache Jena
          Issue Type: Bug
    Affects Versions: Jena 3.7.0
            Reporter: Andy Seaborne
            Assignee: Andy Seaborne
             Fix For: Jena 3.8.0


TDB2 {{Graph.size()}} is much slower than TDB1.

TDB2 {{Graph.size()}} relies on {{GraphBase.size}}, which uses {{graph.find(ANY,ANY,ANY)}} which creates nodes and triples unnecessarily for the count.

TDB1 has code to use the primary tupleindex size() operation and it 50x faster on 5m triples in the default graph.




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)