Jim Steinebrey created NIFI-13351:
-------------------------------------

             Summary: Enhance QueryDatabaseTable and QueryDatabaseTableRecord 
processors not to call session.putAttribute multiple times
                 Key: NIFI-13351
                 URL: https://issues.apache.org/jira/browse/NIFI-13351
             Project: Apache NiFi
          Issue Type: Improvement
    Affects Versions: 2.0.0-M3, 1.26.0
            Reporter: Jim Steinebrey
            Assignee: Jim Steinebrey


Per [~markap14] in the following 
[post|https://lists.apache.org/thread/7zo2px31r3377c7vhby4h6nrngdf3llf] one 
should avoid calling session.putAttribute many times since in order to maintain 
object immutability it has to create a new FlowFile object (and a new HashMap 
of all attributes!) for every call to session.putAttribute which leads to 
potentially a large amount of unneeded garbage getting created.

Enhance QueryDatabaseTable and QueryDatabaseTableRecord processors not to call 
session.putAttribute multiple times in a for loop for column max values. The 
repeated putAttribute calls exist in AbstractQueryDatabaseTable which is 
extended by those two processors.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to