Matt Burgess created NIFI-7087:
----------------------------------

             Summary: Framework should use FlowManager.findAllConnections() 
when available
                 Key: NIFI-7087
                 URL: https://issues.apache.org/jira/browse/NIFI-7087
             Project: Apache NiFi
          Issue Type: Improvement
          Components: Core Framework
            Reporter: Matt Burgess


Many places in the framework the entire list of Connections is needed, and 
sometimes the list is assembled by recursively collecting all the Connections 
for each child process group. This can be an expensive operation, especially 
since FlowManager keeps a Set of all Connections. It is noticeable in 
ConnectionStatusAnalytics for example.

Whenever a FlowManager object is available to a class that retrieves all 
Connections, it should use FlowManager.findAllConnections() rather than 
rootGroup.findAllConnections().



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to