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

    https://github.com/apache/nifi/pull/3128#discussion_r230917511
  
    --- Diff: 
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutDatabaseRecord.java
 ---
    @@ -669,11 +685,20 @@ private void executeDML(ProcessContext context, 
ProcessSession session, FlowFile
                             }
                         }
                         ps.addBatch();
    +                    if (++currentBatchSize == batchSize) {
    --- End diff --
    
    Would it be beneficial to capture `currentBatchSize*batchIndex`, with 
`batchIndex` being incremented only after a successful call to `executeBatch()` 
as an attribute? My thinking is, if you have a failure, and only part of a 
batch was loaded, you could store how many rows were loaded successfully as an 
attribute?


---

Reply via email to