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

Bryan Rosander commented on NIFI-3225:
--------------------------------------

It's an arbitrary amount of time, sampling is done via thread dump every 50 ms.

I've been able to get about 11k/s through my test flow after this and a couple 
other smaller tweaks.  It's about 10k/s max without.

> Abstract Processor type that batches session.get() and session.commit() calls
> -----------------------------------------------------------------------------
>
>                 Key: NIFI-3225
>                 URL: https://issues.apache.org/jira/browse/NIFI-3225
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Bryan Rosander
>            Assignee: Bryan Rosander
>            Priority: Minor
>         Attachments: after.png, before.png
>
>
> For processors that are stateless and support batching, it should be safe to 
> get and process multiple input FlowFiles for each onTrigger() call.  
> This should amortize the cost of session.get(), session.checkpoint(), 
> session.commit() as well as any setup in onTrigger() that isn't dependent on 
> the FlowFile(s) attributes or content.
> An AbstractBatchingProcessor type should reduce boilerplate code in candidate 
> processors and encourage uniform configurability via a property to control 
> batch size.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to