My choice in the past for such a case was AttributesToJSON with Destination=flowfile-content thinking that this really quickly gets rid of large content, albeit replacing it with a small json … don’t know if this is better or worse performance wise than ReplaceText, but it does get the job done…
Von: Mark Payne <[email protected]> Gesendet: Donnerstag, 20. Mai 2021 15:32 An: [email protected] Betreff: Re: Delete FlowFile content Easiest way is to use ReplaceText. But put the replacement strategy (may not be exactly the name of the property) to Always Replace instead of Regex Replace. That should be extremely fast. Sent from my iPhone On May 20, 2021, at 9:26 AM, Tomislav Novosel <[email protected]<mailto:[email protected]>> wrote: Hi to all, what is the best way to delete flowfiles content so that flowfile keeps attributes, but to not take space in next relationship between two processors? I found this: https://stackoverflow.com/questions/53312069/what-is-a-fastest-way-to-remove-nifi-flowfile-content But then flowfile will be striped off the attributes and lineage is lost. I tried also ReplaceText to replace with Empty string, but I have large files in the flow, so it is extremely slow. Thanks, Tom Harald Dobbernack Key-Work Consulting GmbH | Kriegsstr. 100 | 76133 | Karlsruhe | Germany | www.key-work.de<https://www.key-work.de> | Datenschutz<https://www.key-work.de/de/footer/datenschutz.html> Fon: +49-721-78203-264 | E-Mail: [email protected] Key-Work Consulting GmbH, Karlsruhe, HRB 108695, HRG Mannheim Geschäftsführer: Andreas Stappert, Tobin Wotring
