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

ASF subversion and git services commented on NIFI-13351:
--------------------------------------------------------

Commit 85cf0e995e4f7d89e3ddaba0c1fb8f9a36c956ef in nifi's branch 
refs/heads/main from Jim Steinebrey
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=85cf0e995e ]

NIFI-13351 Improved QueryDatabaseTable Processors to call 
session.putAttributes()

This closes #8919

Signed-off-by: David Handermann <exceptionfact...@apache.org>


> 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: 1.26.0, 2.0.0-M3
>            Reporter: Jim Steinebrey
>            Assignee: Jim Steinebrey
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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