You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Bryan Rosander (JIRA)" <ji...@apache.org> on 2016/12/22 17:01:58 UTC

[jira] [Created] (NIFI-3249) UpdateAttribute performance improvements

Bryan Rosander created NIFI-3249:
------------------------------------

             Summary: UpdateAttribute performance improvements
                 Key: NIFI-3249
                 URL: https://issues.apache.org/jira/browse/NIFI-3249
             Project: Apache NiFi
          Issue Type: Improvement
            Reporter: Bryan Rosander
            Assignee: Bryan Rosander
            Priority: Minor


UpdateAttribute does a lot of work in every onTrigger() that it doesn't need to.

The default actions map can be built at schedule time so that it doesn't need to be done on every trigger.

getPropertyValue() can be implemented using ConcurrentMap.computeIfAbsent()

Update actions can be ignored if there is a delete action for the same attribute.

Only need to call processSession.updateAttributes() and processSession.deleteAttributes() if there are attributes to update and delete respectively.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)