Github user patricker commented on a diff in the pull request:
https://github.com/apache/nifi/pull/3128#discussion_r230916140
--- Diff:
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/PutDatabaseRecord.java
---
@@ -265,6 +265,17 @@
.expressionLanguageSupported(ExpressionLanguageScope.VARIABLE_REGISTRY)
.build();
+ static final PropertyDescriptor BATCH_SIZE = new
PropertyDescriptor.Builder()
+ .name("put-db-record-batch-size")
+ .displayName("Bulk Size")
+ .description("Specifies batch size for INSERT and UPDATE
statements. This parameter has no effect for other statements specified in
'Statement Type'."
+ + " Non-positive value has the effect of infinite bulk
size.")
+ .defaultValue("-1")
--- End diff --
I agree that `0` should be the default, and would replicate the current
behavior of the processor, "All records in one batch".
---