[ 
https://issues.apache.org/jira/browse/JENA-1562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16507493#comment-16507493
 ] 

ASF GitHub Bot commented on JENA-1562:
--------------------------------------

GitHub user afs opened a pull request:

    https://github.com/apache/jena/pull/434

    JENA-1562: Fix for Graph.size() for TDB2 graphs

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/afs/jena tdb2-graph-size

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/jena/pull/434.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #434
    
----
commit de34b1cd77333faf5b84765e626a065d313aec90
Author: Andy Seaborne <andy@...>
Date:   2018-06-10T08:52:18Z

    JENA-1562: Fix for Graph.size() for TDB2 graphs

----


> 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)

Reply via email to