Mark Payne created NIFI-11105: --------------------------------- Summary: Download Flow takes long time when there are many Process Groups with Parameter Contexts Key: NIFI-11105 URL: https://issues.apache.org/jira/browse/NIFI-11105 Project: Apache NiFi Issue Type: Bug Components: Core Framework Reporter: Mark Payne Assignee: Mark Payne
When we export a flow for download, we have to serialize any referenced Parameter Context as part of the JSON. To do this, we build up a collection of VersionedParameterContexts. The logic that we use does this for every Process Group. So if we have many small Process Groups, each bound to a Parameter Context, we formulate that VersionedParameterContext every time. However, there is no need to create more than one VersionedParameterContext for each existing ParameterContext. This mapping becomes very expensive and can take many minutes for flows that contain lots of Parameters and lots of Process Groups. -- This message was sent by Atlassian Jira (v8.20.10#820010)