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/13 13:53:00 UTC

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

     [ https://issues.apache.org/jira/browse/JENA-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne resolved JENA-1562.
---------------------------------
    Resolution: Fixed

> 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
>            Priority: Major
>             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)