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

ASF GitHub Bot commented on NIFI-4838:
--------------------------------------

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

    https://github.com/apache/nifi/pull/2448#discussion_r172198724
  
    --- Diff: 
nifi-nar-bundles/nifi-mongodb-bundle/nifi-mongodb-processors/src/main/java/org/apache/nifi/processors/mongodb/GetMongo.java
 ---
    @@ -121,34 +136,53 @@
                 .addValidator(StandardValidators.POSITIVE_INTEGER_VALIDATOR)
                 .build();
     
    -    static final PropertyDescriptor BATCH_SIZE = new 
PropertyDescriptor.Builder()
    -            .name("Batch Size")
    -            .description("The number of elements returned from the server 
in one batch")
    +    static final PropertyDescriptor FETCH_SIZE = new 
PropertyDescriptor.Builder()
    +            .name("Fetch Size")
    --- End diff --
    
    Changing a property's name will cause it to be recognized as a "different" 
property. This will cause all existing flows containing GetMongo to become 
invalid (the "Batch Size" property will show up at the bottom containing the 
existing value, but the framework will claim the processor is invalid because 
Batch Size is not a supported property).
    That's why we use displayName() for the user-friendly name, so we can 
change it at will. I realize you did not have that luxury here, but we still 
would have to keep the name("Batch Size") and add displayName("Fetch Size"). 
This will be confusing in the code (until we change it for real, perhaps in 
NiFi 2.0?) but can be accompanied by documentation.
    Also I'm still a little leery of changing the existing property to "fetch" 
vs "batch", then using "batch" in a different context in the added property. 
Would like to get some input from others on this as well.


> Make GetMongo support multiple commits and give some progress indication
> ------------------------------------------------------------------------
>
>                 Key: NIFI-4838
>                 URL: https://issues.apache.org/jira/browse/NIFI-4838
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Mike Thomsen
>            Assignee: Mike Thomsen
>            Priority: Major
>
> It shouldn't wait until the end to do a commit() call because the effect is 
> that GetMongo looks like it has hung to a user who is pulling a very large 
> data set.
> It should also have an option for running a count query to get the current 
> approximate count of documents that would match the query and append an 
> attribute that indicates where a flowfile stands in the total result count. 
> Ex:
> query.progress.point.start = 2500
> query.progress.point.end = 5000
> query.count.estimate = 17,568,231



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to