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

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

Github user rvesse commented on a diff in the pull request:

    https://github.com/apache/jena/pull/501#discussion_r237831448
  
    --- Diff: jena-tdb/src/main/java/org/apache/jena/tdb/store/GraphTDB.java ---
    @@ -171,7 +171,10 @@ protected final int graphBaseSize() {
     
         @Override
         public void clear() {
    -        getDatasetGraphTDB().deleteAny(getGraphName(), Node.ANY, Node.ANY, 
Node.ANY) ;
    +        // Logically, this is "super.clear()" except the default 
implementation
    +        // is a loop that materializes nodes. We want to call the dataset 
directly 
    +        // so that nodes don't get materialized, just deleted from indexes.
    --- End diff --
    
    Loaded from the node table into nodes in the cache I think?


> CLEAR and DROP do not work on inference graphs over TDB.
> --------------------------------------------------------
>
>                 Key: JENA-1643
>                 URL: https://issues.apache.org/jira/browse/JENA-1643
>             Project: Apache Jena
>          Issue Type: Bug
>    Affects Versions: Jena 3.9.0
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Major
>             Fix For: Jena 3.10.0
>
>
> [Reported by 
> email|https://lists.apache.org/thread.html/74e434ababc63419fe5abf141d88ea9101b8d7fc0ca7b860f400b4d9@%3Cusers.jena.apache.org%3E].
> {{BaseInfGraph}}.clear is not trigger transaction promoting in the 
> graph-level transaction going through {{GraphTDB.clear}}.



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

Reply via email to