[
https://issues.apache.org/jira/browse/NIFI-11129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17791771#comment-17791771
]
ASF subversion and git services commented on NIFI-11129:
--------------------------------------------------------
Commit 685700ad7c6d1b6a1aaea0594a3f54600ff2c4f9 in nifi's branch
refs/heads/main from Sebastian Rothbucher
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=685700ad7c ]
NIFI-11129 Added PutMongoBulkOperations Processor
This closes #6918
Signed-off-by: David Handermann <[email protected]>
> PutMongoBulk processor - use the more efficient bulkWrite API
> -------------------------------------------------------------
>
> Key: NIFI-11129
> URL: https://issues.apache.org/jira/browse/NIFI-11129
> Project: Apache NiFi
> Issue Type: New Feature
> Reporter: Sebastian Rothbucher
> Priority: Minor
> Time Spent: 6h 40m
> Remaining Estimate: 0h
>
> Problem to solve: PutMongo can only update (or upsert) one record at a time.
> For thousands of records, this is not efficient. The alternative
> PutMongoRecord assumes a lot about the documents written
> Proposed solution: add a PutMongoBulk processor that uses the bulkWrite API -
> bundle operations together into one (can be hundreds at a time, also by
> merging flowfiles). Can be any insert / replace / update / upsert with no
> assumption about how the documents look like. MongoDB processes all in one
> operation - resulting in way less load and way more efficient operation.
> What I can bring: I wrote such a processor about a year back (for earlier
> version); it did work in production flawlessly for months now. I did update
> it to 1.20-SNAPSHOT and re-tested; can submit a PR immediately after I get a
> ticket number here. Tried to be similar to PutMongo wherever poss; feedback
> is sure appreciated.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)