You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2013/09/18 11:21:59 UTC

svn commit: r1524349 - /jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/store/bulkloader/LoaderNodeTupleTable.java

Author: andy
Date: Wed Sep 18 09:21:59 2013
New Revision: 1524349

URL: http://svn.apache.org/r1524349
Log:
Remove commented-out code

Modified:
    jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/store/bulkloader/LoaderNodeTupleTable.java

Modified: jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/store/bulkloader/LoaderNodeTupleTable.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/store/bulkloader/LoaderNodeTupleTable.java?rev=1524349&r1=1524348&r2=1524349&view=diff
==============================================================================
--- jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/store/bulkloader/LoaderNodeTupleTable.java (original)
+++ jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/store/bulkloader/LoaderNodeTupleTable.java Wed Sep 18 09:21:59 2013
@@ -108,16 +108,6 @@ public class LoaderNodeTupleTable implem
             count++ ;           // Not zero the first time.
             monitor.dataItem() ;
             nodeTupleTable.addRow(nodes) ;
-
-//            // Flush every so often.
-//            // Seems to improve performance:maybe because a bunch of blocks are
-//            // flushed together meaning better disk access pattern 
-//            if ( LoadFlushTickPrimary > 0 &&  count % LoadFlushTickPrimary == 0 )
-//            {
-//                System.out.println("FLUSH - primary") ;
-//                nodeTupleTable.sync() ;
-//            }
-            
         } catch (RuntimeException ex)
         {
             System.err.println(Iter.asString(Arrays.asList(nodes))) ;
@@ -130,8 +120,6 @@ public class LoaderNodeTupleTable implem
      */
     public void loadDataFinish()
     {
-//      if ( LoadFlushTickPrimary > 0 &&  count % LoadFlushTickPrimary == 0 )
-//          nodeTupleTable.sync() ;
         monitor.finishDataPhase() ;
     }
     
@@ -213,19 +201,8 @@ public class LoaderNodeTupleTable implem
                 if ( destIdx != null )
                     destIdx.add(tuple) ;
             }
-            
-//            // Flush every so often.
-//            if ( LoadFlushTickSecondary > 0 && counter % LoadFlushTickSecondary == 0 )
-//            {
-//                System.out.println("FLUSH - secondary") ;
-//                sync(destIndexes ) ;
-//            }
         }
 
-//        // And finally ...
-//        if ( LoadFlushTickSecondary > 0 && counter % LoadFlushTickSecondary != 0 )
-//            sync(destIndexes) ;
-
         monitor.finishIndex(label) ;
     }