Github user afs commented on a diff in the pull request:
https://github.com/apache/jena/pull/501#discussion_r237839306
--- 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 --
Yes.
---